Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue7334] XML file locking in Jython 2.5 (OSError on Windows)

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Nov 16, 2009, 7:56 AM

Post #1 of 3 (291 views)
Permalink
[issue7334] XML file locking in Jython 2.5 (OSError on Windows)

New submission from Gareth Doutch <gareth.doutch [at] gmail>:

I have a problem with an xml file locking after read and/or write.

I have a short sample code with unit test available here:
http://bugs.jython.org/file741/lock.py

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


The problem can be cured by applying the changes as per file:
http://bugs.jython.org/file742/ElementTree.py

----------
components: Windows, XML
messages: 95349
nosy: gdoutch
severity: normal
status: open
title: XML file locking in Jython 2.5 (OSError on Windows)
type: behavior
versions: Python 2.5

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7334>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 16, 2009, 8:02 AM

Post #2 of 3 (268 views)
Permalink
[issue7334] XML file locking in Jython 2.5 (OSError on Windows) [In reply to]

Gareth Doutch <gareth.doutch [at] gmail> added the comment:

This is on the Jython list:
http://bugs.jython.org/issue1479

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7334>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Nov 16, 2009, 8:15 PM

Post #3 of 3 (258 views)
Permalink
[issue7334] XML file locking in Jython 2.5 (OSError on Windows) [In reply to]

Changes by Philip Jenvey <pjenvey [at] underboss>:


----------
assignee: -> pjenvey
nosy: +pjenvey
versions: +Python 2.7, Python 3.2 -Python 2.5

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue7334>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.