summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fcntl.py
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2013-03-31 17:25:42 (GMT)
committerGregory P. Smith <greg@krypto.org>2013-03-31 17:25:42 (GMT)
commit2b3a35b5dd24e648839202eb05c3405270d34770 (patch)
treea9504cc7ffd66635d8f81df12c1685017b94d761 /Lib/test/test_fcntl.py
parent3aaf5dab8a6be48adb69290385017777b7177adf (diff)
parente5aefa452b2e3a5a834610cefa1656f36673f686 (diff)
downloadcpython-2b3a35b5dd24e648839202eb05c3405270d34770.zip
cpython-2b3a35b5dd24e648839202eb05c3405270d34770.tar.gz
cpython-2b3a35b5dd24e648839202eb05c3405270d34770.tar.bz2
skip a fcntl test on ARM Linux that isn't supported there.
Diffstat (limited to 'Lib/test/test_fcntl.py')
-rw-r--r--Lib/test/test_fcntl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py
index f977187..9dd887a 100644
--- a/Lib/test/test_fcntl.py
+++ b/Lib/test/test_fcntl.py
@@ -1,5 +1,6 @@
"""Test program for the fcntl C module.
"""
+import platform
import os
import struct
import sys
@@ -90,6 +91,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'.