mirror of https://github.com/python/cpython
use skipTest()
This commit is contained in:
parent
ae6acfc9a1
commit
757b3c90e6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue