]> granicus.if.org Git - python/commitdiff
#18798: merge typo fix from 3.3 and also use two unused variables.
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 23 Aug 2013 20:09:32 +0000 (23:09 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 23 Aug 2013 20:09:32 +0000 (23:09 +0300)
1  2 
Lib/test/test_fcntl.py

index b64eba2cade05797032732165dbce9424b8fd869,b8cda2f108468097f8670f589e70b4b3b866ecc4..c816d970d750f70c4097f018a8825c55e9851c0a
@@@ -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):