use skipTest()

This commit is contained in:
Benjamin Peterson 2009-05-16 18:44:34 +00:00
parent ae6acfc9a1
commit 757b3c90e6
1 changed files with 1 additions and 4 deletions

View File

@ -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)