[Python-checkins] r78550 - python/trunk/Lib/test/test_thread.py
gregory.p.smith
python-checkins at python.org
Mon Mar 1 07:01:02 CET 2010
Author: gregory.p.smith
Date: Mon Mar 1 07:01:02 2010
New Revision: 78550
Log:
Fix test to be skipped on windows.
Modified:
python/trunk/Lib/test/test_thread.py
Modified: python/trunk/Lib/test/test_thread.py
==============================================================================
--- python/trunk/Lib/test/test_thread.py (original)
+++ python/trunk/Lib/test/test_thread.py Mon Mar 1 07:01:02 2010
@@ -201,11 +201,9 @@
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.")
def test_forkinthread(self):
- if sys.platform.startswith('win'):
- from test.test_support import TestSkipped
- raise TestSkipped("This test is only appropriate for "
- "POSIX-like systems.")
def thread1():
try:
pid = os.fork() # fork in a thread
More information about the Python-checkins
mailing list