Commit d899caa6 authored by Gregory P. Smith's avatar Gregory P. Smith

Fix test_fcntl to run properly on systems that do not support the flags

used in the "does the value get passed in properly" test.
parent 9cfd4662
......@@ -113,7 +113,10 @@ class TestFcntl(unittest.TestCase):
self.skipTest("F_NOTIFY or DN_MULTISHOT unavailable")
fd = os.open(os.path.dirname(os.path.abspath(TESTFN)), os.O_RDONLY)
try:
# This will raise OverflowError if issue1309352 is present.
fcntl.fcntl(fd, cmd, flags)
except IOError:
pass # Running on a system that doesn't support these flags.
finally:
os.close(fd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment