mirror of
https://github.com/python/cpython.git
synced 2025-08-21 09:21:18 +00:00
The test-skipping API doesn't exist in 2.6
This commit is contained in:
parent
e7e46f8152
commit
bcc2f1aaa6
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,8 @@ class TestFcntl(unittest.TestCase):
|
||||||
# This flag is larger than 2**31 in 64-bit builds
|
# This flag is larger than 2**31 in 64-bit builds
|
||||||
flags = fcntl.DN_MULTISHOT
|
flags = fcntl.DN_MULTISHOT
|
||||||
except AttributeError:
|
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)
|
fd = os.open(os.path.dirname(os.path.abspath(TESTFN)), os.O_RDONLY)
|
||||||
try:
|
try:
|
||||||
fcntl.fcntl(fd, cmd, flags)
|
fcntl.fcntl(fd, cmd, flags)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue