Skip to content

Commit ba46e1b

Browse files
committed
Fix pre-commit
1 parent 638e849 commit ba46e1b

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

setup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import print_function
2-
31
import os.path
42
import subprocess
53
import tempfile

testing/print_signals.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
Since all signals are printed and otherwise ignored, you'll need to send
55
SIGKILL (kill -9) to this process to actually end it.
66
"""
7-
from __future__ import print_function
8-
97
import os
108
import signal
119
import sys

tests/cwd_test.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import os
22
import shutil
3-
from subprocess import run, PIPE
3+
from subprocess import PIPE
4+
from subprocess import run
45

56
import pytest
67

8+
79
@pytest.mark.usefixtures('both_debug_modes', 'both_setsid_modes')
810
def test_working_directories():
911
"""The child process must start in the working directory in which
@@ -14,9 +16,13 @@ def test_working_directories():
1416
# predictable output - so we can't rely on dumb-init being found
1517
# in the "." directory.
1618
dumb_init = os.path.realpath(shutil.which('dumb-init'))
17-
proc = run((dumb_init,
18-
'sh', '-c', 'readlink /proc/$PPID/cwd && readlink /proc/$$/cwd'),
19-
cwd="/tmp", stdout=PIPE, stderr=PIPE)
19+
proc = run(
20+
(
21+
dumb_init,
22+
'sh', '-c', 'readlink /proc/$PPID/cwd && readlink /proc/$$/cwd',
23+
),
24+
cwd='/tmp', stdout=PIPE, stderr=PIPE,
25+
)
2026

2127
assert proc.returncode == 0
2228
assert proc.stdout == b'/\n/tmp\n'

0 commit comments

Comments
 (0)