[Python-checkins] r74218 - python/branches/release26-maint/Lib/test/test_os.py

r.david.murray python-checkins at python.org
Mon Jul 27 03:14:38 CEST 2009


Author: r.david.murray
Date: Mon Jul 27 03:14:38 2009
New Revision: 74218

Log:
Remove unittest.SkipTest from backport of test for issue 6542.


Modified:
   python/branches/release26-maint/Lib/test/test_os.py

Modified: python/branches/release26-maint/Lib/test/test_os.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_os.py	(original)
+++ python/branches/release26-maint/Lib/test/test_os.py	Mon Jul 27 03:14:38 2009
@@ -565,8 +565,9 @@
                 else:
                     break
             if i < 2:
-                raise unittest.SkipTest(
-                    "Unable to acquire a range of invalid file descriptors")
+                # Unable to acquire a range of invalid file descriptors,
+                # so skip the test (in 2.6+ this is a unittest.SkipTest).
+                return
             self.assertEqual(os.closerange(fd, fd + i-1), None)
 
     def test_dup2(self):


More information about the Python-checkins mailing list