Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 892584e

Browse files
committed
#18798: merge typo fix from 3.3 and also use two unused variables.
2 parents 6e6c6ac + 78ede7c commit 892584e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/test/test_fcntl.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import unittest
99
from test.support import verbose, TESTFN, unlink, run_unittest, import_module
1010

11-
# Skip test if no fnctl module.
11+
# Skip test if no fcntl module.
1212
fcntl = import_module('fcntl')
1313

1414

@@ -70,7 +70,11 @@ def test_fcntl_file_descriptor(self):
7070
# again, but pass the file rather than numeric descriptor
7171
self.f = open(TESTFN, 'wb')
7272
rv = fcntl.fcntl(self.f, fcntl.F_SETFL, os.O_NONBLOCK)
73+
if verbose:
74+
print('Status from fcntl with O_NONBLOCK: ', rv)
7375
rv = fcntl.fcntl(self.f, fcntl.F_SETLKW, lockdata)
76+
if verbose:
77+
print('String from fcntl with F_SETLKW: ', repr(rv))
7478
self.f.close()
7579

7680
def test_fcntl_bad_file(self):

0 commit comments

Comments
 (0)