mirror of https://github.com/python/cpython
skip a fcntl test on ARM Linux that isn't supported there.
This commit is contained in:
commit
2b3a35b5dd
|
@ -1,5 +1,6 @@
|
||||||
"""Test program for the fcntl C module.
|
"""Test program for the fcntl C module.
|
||||||
"""
|
"""
|
||||||
|
import platform
|
||||||
import os
|
import os
|
||||||
import struct
|
import struct
|
||||||
import sys
|
import sys
|
||||||
|
@ -90,6 +91,9 @@ class TestFcntl(unittest.TestCase):
|
||||||
self.assertRaises(OverflowError, fcntl.fcntl, F(_testcapi.INT_MIN - 1),
|
self.assertRaises(OverflowError, fcntl.fcntl, F(_testcapi.INT_MIN - 1),
|
||||||
fcntl.F_SETFL, os.O_NONBLOCK)
|
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):
|
def test_fcntl_64_bit(self):
|
||||||
# Issue #1309352: fcntl shouldn't fail when the third arg fits in a
|
# Issue #1309352: fcntl shouldn't fail when the third arg fits in a
|
||||||
# C 'long' but not in a C 'int'.
|
# C 'long' but not in a C 'int'.
|
||||||
|
|
Loading…
Reference in New Issue