[Patches] [ python-Patches-595014 ] Cygwin tempfile patch

noreply@sourceforge.net noreply@sourceforge.net
Wed, 14 Aug 2002 08:11:41 -0700


Patches item #595014, was opened at 2002-08-14 03:35
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=595014&group_id=5470

Category: Library (Lib)
Group: None
>Status: Closed
Resolution: Accepted
Priority: 5
Submitted By: Jason Tishler (jlt63)
Assigned to: Jason Tishler (jlt63)
Summary: Cygwin tempfile patch

Initial Comment:
Although Cygwin attempts to be as Posix compliant
as possible, it has difficulties unlinking open
files. This is not surprising given that Cygwin is
dependent on Win32 which in turn has this problem
itself.

The attached tempfile patch acknowledges this
Cygwin limitation. Without this patch, Cygwin
fails test_tempfile (i.e., test_has_no_name) as
follows:

$ ./python -E -tt ../Lib/test/regrtest.py -l test_tempfile
test_tempfile
test test_tempfile failed -- Traceback (most recent call last):
  File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 689, in test_has_no_name
    self.failOnException("rmdir", ei)
  File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 33, in failOnException
    self.fail("%s raised %s: %s" % (what, ei[0], ei[1]))
  File "/home/jt/src/PythonCvs/Lib/unittest.py", line 260, in fail
    raise self.failureException, msg
AssertionError: rmdir raised exceptions.OSError: [Errno 90] Directory not empty: 
'/mnt/c/DOCUME~1/jatis/LOCALS~1/Temp/tmpM_z8nj'


----------------------------------------------------------------------

>Comment By: Jason Tishler (jlt63)
Date: 2002-08-14 07:11

Message:
Logged In: YES 
user_id=86216

Committed as Lib/tempfile.py 1.48.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2002-08-14 06:48

Message:
Logged In: YES 
user_id=21627

This is fine, please apply it.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=595014&group_id=5470