summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-12 22:15:52 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-12 22:15:52 (GMT)
commit0e351f34c516b7b0f8a1c75b0744347f1f6673a4 (patch)
tree8b683f7eea14df25c8e1b0cb1518d1dd881bc998 /Lib/test
parentd77636216c37c03173aba98135143d88d7184c68 (diff)
downloadcpython-0e351f34c516b7b0f8a1c75b0744347f1f6673a4.zip
cpython-0e351f34c516b7b0f8a1c75b0744347f1f6673a4.tar.gz
cpython-0e351f34c516b7b0f8a1c75b0744347f1f6673a4.tar.bz2
Finally found a wat to set a file nonblocking that works on Irix,
Solaris and Linux: use os.O_NONBLOCK.
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/test_fcntl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py
index c563018..a5ea1e6 100755
--- a/Lib/test/test_fcntl.py
+++ b/Lib/test/test_fcntl.py
@@ -12,9 +12,9 @@ filename = '/tmp/delete-me'
# the example from the library docs
f = open(filename,'w')
-rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETFL, FCNTL.FNDELAY)
+rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETFL, os.O_NONBLOCK)
if verbose:
- print 'Status from fnctl with O_NDELAY: ', rv
+ print 'Status from fnctl with O_NONBLOCK: ', rv
lockdata = struct.pack('hhllhh', FCNTL.F_WRLCK, 0, 0, 0, 0, 0)
if verbose: