Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(116481)

Unified Diff: Lib/test/test_thread.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_threading.py ('k') | Lib/test/test_traceback.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_thread.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_thread.py Wed Mar 02 00:01:35 2016 +0000
@@ -214,16 +214,17 @@ class LockTests(lock_tests.LockTests):
class TestForkInThread(unittest.TestCase):
def setUp(self):
self.read_fd, self.write_fd = os.pipe()
@unittest.skipIf(sys.platform.startswith('win'),
"This test is only appropriate for POSIX-like systems.")
+ @unittest.skipUnless(hasattr(os, 'fork'), "test requires os.fork()")
@support.reap_threads
def test_forkinthread(self):
def thread1():
try:
pid = os.fork() # fork in a thread
except RuntimeError:
os._exit(1) # exit the child
« no previous file with comments | « Lib/test/test_threading.py ('k') | Lib/test/test_traceback.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+