Message5200

Author gdoutch
Recipients gdoutch
Date 2009-09-29.08:25:19
SpamBayes Score 3.0666336e-09
Marked as misclassified No
Message-id <1254212721.79.0.682149660058.issue1479@psf.upfronthosting.co.za>
In-reply-to
Content
I have a problem with an xml file locking after read and/or write.
 
I have a short sample code with unit test attached. Below are the
outputs from Jython and CPython (v 2.5.4).
 
I am using Jython 2.5.1 on Windows XP and java version "1.6.0_16".

>jython lock.py
E
======================================================================
ERROR: runTest (__main__.TestDelete)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "W:\testTeam\SIT\JySit\sit\scripts\lock.py", line 73, in tearDown
    os.remove(self.fileName)
  File "C:\jython2.5.1\Lib\os.py", line 342, in remove
    raise OSError(0, "couldn't delete file", path)
OSError: [Errno 0] couldn't delete file: 'C:\\testdir\\test.xml'
 
----------------------------------------------------------------------
Ran 1 test in 0.454s
 
FAILED (errors=1)
 
 
>python lock.py
.
----------------------------------------------------------------------
Ran 1 test in 0.015s
 
OK
History
Date User Action Args
2009-09-29 08:25:21gdoutchsetrecipients: + gdoutch
2009-09-29 08:25:21gdoutchsetmessageid: <1254212721.79.0.682149660058.issue1479@psf.upfronthosting.co.za>
2009-09-29 08:25:21gdoutchlinkissue1479 messages
2009-09-29 08:25:21gdoutchcreate