test_fcntl.py failed

Don Rosselot rosselotNoSpam at netway.com
Sun May 16 12:19:58 EDT 1999


I downloaded the Python 1.5.1 software from "hpux.cs.utah.edu"
I am using the following machine and OS 
HP-UX orff B.10.20 A 9000/778

Everything worked except:
The test_fcntl.py failed.  I looked at the test function, but I could
not fix it (newbee).  I searched in the dejaNews and found out quite a
bit about file locking, but no bug report.  

Here is the output:

orff 192: python test_fcntl.py
Status from fnctl with O_NONBLOCK:  0
struct.pack:
'\000\002\000\000\000\000\000\000\000\000\000\000\000\000\000\000'
Traceback (innermost last):
  File "test_fcntl.py", line 28, in ?
    rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETLKW, lockdata)
IOError: (22, 'Invalid argument')
orff 193:

Questions:
1) Is this a bug or what?
2) Is there a general file lock that is cross platform for python?

Thanks
Don Rosselot
work:  rosselot at protons.mgh.harvard.edu




More information about the Python-list mailing list