From: Benjamin Peterson Date: Sat, 16 May 2009 18:44:34 +0000 (+0000) Subject: use skipTest() X-Git-Tag: v2.7a1~1177 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=757b3c90e63d323ae25cffbfce84112042320e58;p=thirdparty%2FPython%2Fcpython.git use skipTest() --- diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 9b8ba021d383..42716fe34b69 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -37,10 +37,7 @@ class FileTests(unittest.TestCase): retries += 1 if retries > 10: # XXX test skipped - print >> sys.stderr, ( - "couldn't allocate two consecutive fds, " - "skipping test_closerange") - return + self.skipTest("couldn't allocate two consecutive fds") first, second = second, os.dup(second) finally: os.close(second)