We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0431c0 + 36c263f commit d7ea32cCopy full SHA for d7ea32c
tests/snippets/stdlib_subprocess.py
@@ -28,7 +28,9 @@
28
p = subprocess.Popen(["echo", "test"], stdout=subprocess.PIPE)
29
p.wait()
30
31
-if "win" not in sys.platform:
+is_unix = "win" not in sys.platform or "darwin" in sys.platform
32
+
33
+if is_unix:
34
# unix
35
test_output = b"test\n"
36
else:
@@ -40,15 +42,15 @@
40
42
p = subprocess.Popen(["sleep", "2"])
41
43
p.terminate()
44
45
46
assert p.returncode == -signal.SIGTERM
47
48
assert p.returncode == 1
49
50
51
p.kill()
52
53
54
assert p.returncode == -signal.SIGKILL
55
56
0 commit comments