mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
Merge branch 'python-code-style-again' into 'main'
tests: Fix code style in Python files to satisfy black and flake8 See merge request GNOME/glib!2984
This commit is contained in:
commit
e49c4b1a9e
@ -24,7 +24,6 @@ import collections
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
|
||||||
import tempfile
|
import tempfile
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
@ -151,7 +150,9 @@ class TestAssertMessage(unittest.TestCase):
|
|||||||
try:
|
try:
|
||||||
tmp.write(GDB_SCRIPT)
|
tmp.write(GDB_SCRIPT)
|
||||||
tmp.close()
|
tmp.close()
|
||||||
result = self.runGdbAssertMessage("-x", tmp.name, self.__assert_msg_test)
|
result = self.runGdbAssertMessage(
|
||||||
|
"-x", tmp.name, self.__assert_msg_test
|
||||||
|
)
|
||||||
finally:
|
finally:
|
||||||
os.unlink(tmp.name)
|
os.unlink(tmp.name)
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ import collections
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import taptestrunner
|
import taptestrunner
|
||||||
@ -70,7 +69,7 @@ class TestGobjectQuery(unittest.TestCase):
|
|||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
env=env,
|
env=env,
|
||||||
text=True,
|
text=True,
|
||||||
encoding='utf-8',
|
encoding="utf-8",
|
||||||
)
|
)
|
||||||
info.check_returncode()
|
info.check_returncode()
|
||||||
out = info.stdout.strip()
|
out = info.stdout.strip()
|
||||||
|
Loading…
Reference in New Issue
Block a user