Skip to content

Commit 0d3e070

Browse files
committed
first_stage_test: Format code using ruff
Signed-off-by: Marc Hartmayer <[email protected]>
1 parent 7be79d0 commit 0d3e070

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/first_stage_test.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import subprocess
22

3+
import testlib
4+
35
import mitogen.core
46
import mitogen.parent
57
from mitogen.core import b
68

7-
import testlib
8-
99

1010
class CommandLineTest(testlib.RouterMixin, testlib.TestCase):
1111
# Ensure this version of Python produces a command line that is sufficient
@@ -35,15 +35,17 @@ def test_valid_syntax(self):
3535

3636
fp = open("/dev/zero", "r")
3737
try:
38-
proc = subprocess.Popen(args,
38+
proc = subprocess.Popen(
39+
args,
3940
stdin=fp,
4041
stdout=subprocess.PIPE,
4142
stderr=subprocess.PIPE,
4243
)
4344
stdout, stderr = proc.communicate()
4445
self.assertEqual(0, proc.returncode)
45-
self.assertEqual(stdout,
46-
mitogen.parent.BootstrapProtocol.EC0_MARKER+b('\n'))
46+
self.assertEqual(
47+
stdout, mitogen.parent.BootstrapProtocol.EC0_MARKER + b("\n")
48+
)
4749
self.assertIn(
4850
b("Error -3 while decompressing data"), # Unknown compression method
4951
stderr,

0 commit comments

Comments
 (0)