]> granicus.if.org Git - python/commitdiff
The test-skipping API doesn't exist in 2.6
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 24 May 2009 20:07:45 +0000 (20:07 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 24 May 2009 20:07:45 +0000 (20:07 +0000)
Lib/test/test_fcntl.py

index 1977214a0f1f43b3469dd5f8aafef89221c203c9..350e2330262b9e36277a47480a0236f110ad0246 100755 (executable)
@@ -89,7 +89,8 @@ class TestFcntl(unittest.TestCase):
             # This flag is larger than 2**31 in 64-bit builds
             flags = fcntl.DN_MULTISHOT
         except AttributeError:
-            self.skipTest("F_NOTIFY or DN_MULTISHOT unavailable")
+            # F_NOTIFY or DN_MULTISHOT unavailable, skipping
+            return
         fd = os.open(os.path.dirname(os.path.abspath(TESTFN)), os.O_RDONLY)
         try:
             fcntl.fcntl(fd, cmd, flags)