diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-23 20:09:32 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-08-23 20:09:32 (GMT) |
commit | 892584e091bb9121777f971e0bb700da11cab235 (patch) | |
tree | fdd54490438a87c7f46d1e183140e644a60e4227 /Lib | |
parent | 6e6c6ac3d7ccd235d8cb6835db85a432ac0ccba5 (diff) | |
parent | 78ede7c96d016eb0149c876bcb32633e3182e904 (diff) | |
download | cpython-892584e091bb9121777f971e0bb700da11cab235.zip cpython-892584e091bb9121777f971e0bb700da11cab235.tar.gz cpython-892584e091bb9121777f971e0bb700da11cab235.tar.bz2 |
#18798: merge typo fix from 3.3 and also use two unused variables.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_fcntl.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py index b64eba2..c816d97 100644 --- a/Lib/test/test_fcntl.py +++ b/Lib/test/test_fcntl.py @@ -8,7 +8,7 @@ import _testcapi import unittest from test.support import verbose, TESTFN, unlink, run_unittest, import_module -# Skip test if no fnctl module. +# Skip test if no fcntl module. fcntl = import_module('fcntl') @@ -70,7 +70,11 @@ class TestFcntl(unittest.TestCase): # again, but pass the file rather than numeric descriptor self.f = open(TESTFN, 'wb') 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) + if verbose: + print('String from fcntl with F_SETLKW: ', repr(rv)) self.f.close() def test_fcntl_bad_file(self): |