]> granicus.if.org Git - python/commitdiff
Skip a test of an old API on ARM Linux that isn't supported by the OS.
authorGregory P. Smith <greg@krypto.org>
Sun, 31 Mar 2013 17:10:50 +0000 (10:10 -0700)
committerGregory P. Smith <greg@krypto.org>
Sun, 31 Mar 2013 17:10:50 +0000 (10:10 -0700)
Lib/test/test_fcntl.py

index 0ce3a5dd7ae6a3596413fcd0e965923473aaf750..09cb047298e8d359de9b478aaf01239f9ca7c547 100644 (file)
@@ -3,6 +3,7 @@
 OS/2+EMX doesn't support the file locking operations.
 
 """
+import platform
 import os
 import struct
 import sys
@@ -97,6 +98,9 @@ class TestFcntl(unittest.TestCase):
         self.assertRaises(OverflowError, fcntl.fcntl, F(_testcapi.INT_MIN - 1),
                                                       fcntl.F_SETFL, os.O_NONBLOCK)
 
+    @unittest.skipIf(
+        platform.machine().startswith('arm') and platform.system() == 'Linux',
+        "ARM Linux returns EINVAL for F_NOTIFY DN_MULTISHOT")
     def test_fcntl_64_bit(self):
         # Issue #1309352: fcntl shouldn't fail when the third arg fits in a
         # C 'long' but not in a C 'int'.