From: Ezio Melotti Date: Fri, 23 Aug 2013 20:09:32 +0000 (+0300) Subject: #18798: merge typo fix from 3.3 and also use two unused variables. X-Git-Tag: v3.4.0a2~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=892584e091bb9121777f971e0bb700da11cab235;p=python #18798: merge typo fix from 3.3 and also use two unused variables. --- 892584e091bb9121777f971e0bb700da11cab235 diff --cc Lib/test/test_fcntl.py index b64eba2cad,b8cda2f108..c816d970d7 --- a/Lib/test/test_fcntl.py +++ b/Lib/test/test_fcntl.py @@@ -70,7 -76,8 +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 sys.platform not in ['os2emx']: - rv = fcntl.fcntl(self.f, fcntl.F_SETLKW, lockdata) ++ 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):