summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-05-16 18:44:34 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-05-16 18:44:34 (GMT)
commit757b3c90e63d323ae25cffbfce84112042320e58 (patch)
treee7b986403f38354d132c43610654ff1d4b6d5256 /Lib/test
parentae6acfc9a108a1e304f1227bcfc92d96c6a9233e (diff)
downloadcpython-757b3c90e63d323ae25cffbfce84112042320e58.zip
cpython-757b3c90e63d323ae25cffbfce84112042320e58.tar.gz
cpython-757b3c90e63d323ae25cffbfce84112042320e58.tar.bz2
use skipTest()
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_os.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py
index 9b8ba02..42716fe 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)