[Python-checkins] r72689 - python/trunk/Lib/test/test_os.py

benjamin.peterson python-checkins at python.org
Sat May 16 20:44:34 CEST 2009


Author: benjamin.peterson
Date: Sat May 16 20:44:34 2009
New Revision: 72689

Log:
use skipTest()

Modified:
   python/trunk/Lib/test/test_os.py

Modified: python/trunk/Lib/test/test_os.py
==============================================================================
--- python/trunk/Lib/test/test_os.py	(original)
+++ python/trunk/Lib/test/test_os.py	Sat May 16 20:44:34 2009
@@ -37,10 +37,7 @@
                 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)


More information about the Python-checkins mailing list