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 retries += 1
if retries > 10: if retries > 10:
# XXX test skipped # XXX test skipped
print >> sys.stderr, ( self.skipTest("couldn't allocate two consecutive fds")
"couldn't allocate two consecutive fds, "
"skipping test_closerange")
return
first, second = second, os.dup(second) first, second = second, os.dup(second)
finally: finally:
os.close(second) os.close(second)