issue8053 - logic was inverted on which platforms to run a test on.
authorGregory P. Smith <greg@mad-scientist.com>
Thu, 4 Mar 2010 18:26:53 +0000 (18:26 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Thu, 4 Mar 2010 18:26:53 +0000 (18:26 +0000)
caused test_thread to fail on windows.

Lib/test/test_thread.py

index 09ce6b676063482a2b8e397ae95c3c86f6c27397..4d2c06ef109489592da255db5c307f4b04f7584e 100644 (file)
@@ -192,7 +192,7 @@ class TestForkInThread(unittest.TestCase):
         self.assertEqual(os.read(self.read_fd, 2), "OK",
                          "Unable to fork() in thread")
 
-    if sys.platform.startswith('win'):
+    if not sys.platform.startswith('win'):
         test_forkinthread = _test_forkinthread
 
     def tearDown(self):