diff options
author | Guido van Rossum <guido@python.org> | 1997-09-09 03:42:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-09-09 03:42:09 (GMT) |
commit | 5c1f5bd5f64c2c60afa5221862fd220cd086c5c8 (patch) | |
tree | 3bdb31396ddd2db733b6e216345900279a5b695f /Lib/dos_8x3/test_fcn.py | |
parent | d7500fcbb4d0257f3bcd0c87d17ee61f3b1545e8 (diff) | |
download | cpython-5c1f5bd5f64c2c60afa5221862fd220cd086c5c8.zip cpython-5c1f5bd5f64c2c60afa5221862fd220cd086c5c8.tar.gz cpython-5c1f5bd5f64c2c60afa5221862fd220cd086c5c8.tar.bz2 |
Renamed dos_8x3 to dos-8x3.
Diffstat (limited to 'Lib/dos_8x3/test_fcn.py')
-rw-r--r-- | Lib/dos_8x3/test_fcn.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Lib/dos_8x3/test_fcn.py b/Lib/dos_8x3/test_fcn.py deleted file mode 100644 index a5ea1e6..0000000 --- a/Lib/dos_8x3/test_fcn.py +++ /dev/null @@ -1,28 +0,0 @@ -#! /usr/bin/env python -"""Test program for the fcntl C module. - Roger E. Masse -""" -import struct -import fcntl -import FCNTL -import os -from test_support import verbose - -filename = '/tmp/delete-me' - -# the example from the library docs -f = open(filename,'w') -rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETFL, os.O_NONBLOCK) -if verbose: - print 'Status from fnctl with O_NONBLOCK: ', rv - -lockdata = struct.pack('hhllhh', FCNTL.F_WRLCK, 0, 0, 0, 0, 0) -if verbose: - print 'struct.pack: ', `lockdata` - -rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETLKW, lockdata) -if verbose: - print 'String from fcntl with F_SETLKW: ', `rv` - -f.close() -os.unlink(filename) |