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

Commit d808954

Browse files
committed
preexec_fn not supported on windows
1 parent 97d5e44 commit d808954

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
@@ -166,6 +166,7 @@ def test_terminate(self):
166166
else:
167167
self.assertEqual(-signal.SIGTERM, returncode)
168168

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

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

0 commit comments

Comments
 (0)