Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
892584e0
Commit
892584e0
authored
Aug 23, 2013
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Plain Diff
#18798: merge typo fix from 3.3 and also use two unused variables.
parents
6e6c6ac3
78ede7c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Lib/test/test_fcntl.py
Lib/test/test_fcntl.py
+5
-1
No files found.
Lib/test/test_fcntl.py
View file @
892584e0
...
@@ -8,7 +8,7 @@ import _testcapi
...
@@ -8,7 +8,7 @@ import _testcapi
import
unittest
import
unittest
from
test.support
import
verbose
,
TESTFN
,
unlink
,
run_unittest
,
import_module
from
test.support
import
verbose
,
TESTFN
,
unlink
,
run_unittest
,
import_module
# Skip test if no f
nc
tl module.
# Skip test if no f
cn
tl module.
fcntl
=
import_module
(
'fcntl'
)
fcntl
=
import_module
(
'fcntl'
)
...
@@ -70,7 +70,11 @@ class TestFcntl(unittest.TestCase):
...
@@ -70,7 +70,11 @@ class TestFcntl(unittest.TestCase):
# again, but pass the file rather than numeric descriptor
# again, but pass the file rather than numeric descriptor
self
.
f
=
open
(
TESTFN
,
'wb'
)
self
.
f
=
open
(
TESTFN
,
'wb'
)
rv
=
fcntl
.
fcntl
(
self
.
f
,
fcntl
.
F_SETFL
,
os
.
O_NONBLOCK
)
rv
=
fcntl
.
fcntl
(
self
.
f
,
fcntl
.
F_SETFL
,
os
.
O_NONBLOCK
)
if
verbose
:
print
(
'Status from fcntl with O_NONBLOCK: '
,
rv
)
rv
=
fcntl
.
fcntl
(
self
.
f
,
fcntl
.
F_SETLKW
,
lockdata
)
rv
=
fcntl
.
fcntl
(
self
.
f
,
fcntl
.
F_SETLKW
,
lockdata
)
if
verbose
:
print
(
'String from fcntl with F_SETLKW: '
,
repr
(
rv
))
self
.
f
.
close
()
self
.
f
.
close
()
def
test_fcntl_bad_file
(
self
):
def
test_fcntl_bad_file
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment