summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2010-03-01 06:01:02 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2010-03-01 06:01:02 (GMT)
commit7512a9068d372c58ada8f88296217633d3377092 (patch)
tree9b78992bec197811c657f3bd56ad67278c4222a5 /Lib
parent6a65f85e79db20f16a7f18873322984f5b1333ee (diff)
downloadcpython-7512a9068d372c58ada8f88296217633d3377092.zip
cpython-7512a9068d372c58ada8f88296217633d3377092.tar.gz
cpython-7512a9068d372c58ada8f88296217633d3377092.tar.bz2
Fix test to be skipped on windows.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_thread.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_thread.py b/Lib/test/test_thread.py
index 4e707e5..b476317 100644
--- a/Lib/test/test_thread.py
+++ b/Lib/test/test_thread.py
@@ -201,11 +201,9 @@ 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.")
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