Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit 71cf406

Browse files
committed
preexec_fn not supported on windows
1 parent 6aa4e30 commit 71cf406

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_subprocess.py

+2
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def test_terminate(self):
167167
else:
168168
self.assertEqual(-signal.SIGTERM, returncode)
169169

170+
@unittest.skipIf(sys.platform == 'win32', "Don't support preexec_fn")
170171
def test_exception_in_preexec(self):
171172
def raise_exception():
172173
raise Exception("custom exception")
@@ -185,6 +186,7 @@ def raise_exception():
185186
self.assertEqual("Exception occurred in preexec_fn.",
186187
str(ctx.exception))
187188

189+
@unittest.skipIf(sys.platform == 'win32', "Don't support preexec_fn")
188190
def test_cancel_during_preexec(self):
189191
lock = multiprocessing.Lock()
190192
lock.acquire()

0 commit comments

Comments
 (0)