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
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue