Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Martin v. Löwis
>> What they do instead is >> 1. try to delete the file. If that fails for sharing >>violation, try 2. >> 2. move the file to the recycle bin, and set the >>"delete" disposition flag on the file, this will >>cause it to be removed from the recycle bin when >>the last handle is clos

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Martin v. Löwis
> That is what they do with the latest patches. It is pretty much > equivent to the POSIX system. That requires Native NT Calls, and is > not part of win32. It is equivlent to marking the file for deletion > on close, except the other handles do not need to have shared_delete. > The moving the fil

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Joe Smith
"Joe Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Joe Smith" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> Exactly the issue. >> I see the problem here is cygwin's partial POSIX complience. However, >> Windows NT had a design goal of allowing a com

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Joe Smith
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >>> Is this also a restriction on CYGWIN? I don't know >>> anything about CYGWIN but I could imagine that they allow unlink() to >>> succeed when there's still a file descriptor referencing it, and that >>> they will

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Guido van Rossum
On 7/31/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > >> Is this also a restriction on CYGWIN? I don't know > >> anything about CYGWIN but I could imagine that they allow unlink() to > >> succeed when there's still a file descriptor referencing it, and that > >> they will delete the file when

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Martin v. Löwis
>> Is this also a restriction on CYGWIN? I don't know >> anything about CYGWIN but I could imagine that they allow unlink() to >> succeed when there's still a file descriptor referencing it, and that >> they will delete the file when you close it. > > Exactly. That is exactly what they do. Not ex

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Martin v. Löwis
> Regular Windows typically won't let you remove a file when you still > have it open. It depends. If FILE_SHARE_DELETE was passed to CreateFile when opening, you may DeleteFile it while it is still open. Otherwise, you get an error from DeleteFile. > Is this also a restriction on CYGWIN? Cygwin

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Joe Smith
"Joe Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Exactly the issue. > I see the problem here is cygwin's partial POSIX complience. However, > Windows NT had a design goal of allowing a complient implementation > of POSIX to be implmented in a subsystem (along with usere

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Joe Smith
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 7/31/07, Joe Smith <[EMAIL PROTECTED]> wrote: >> Hmm... The documentation for Cygwin's unlink() implies that it should >> function the same as a POSIX unlink() except perhaps if a non-Cygwin >> process >> has an

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Guido van Rossum
On 7/31/07, Joe Smith <[EMAIL PROTECTED]> wrote: > Hmm... The documentation for Cygwin's unlink() implies that it should > function the same as a POSIX unlink() except perhaps if a non-Cygwin process > has an open handle for it without the correct attributes. I see nothing on > my system that would

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-31 Thread Joe Smith
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Guido van Rossum schrieb: >>> I found that in many cases, this is a virus scanner or the indexing >>> service interfering. They open the file, and then the test suite cannot >>> delete it. >> >> Oh darn. I remember

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-30 Thread Martin v. Löwis
> > Cygwin's setlocale function only supports the "C" locale. > > I am a bit suprised that ASCII is returned rather than the system's > default > > encoding. > > If I understand the situation correctly, you shouldn't be. The C > locale is defined to use ASCII. I think you don't. I'm certain

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-30 Thread Stephen J. Turnbull
Joe Smith writes: > Cygwin's setlocale function only supports the "C" locale. > I am a bit suprised that ASCII is returned rather than the system's default > encoding. If I understand the situation correctly, you shouldn't be. The C locale is defined to use ASCII. __

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-30 Thread Martin v. Löwis
Guido van Rossum schrieb: >> I found that in many cases, this is a virus scanner or the indexing >> service interfering. They open the file, and then the test suite cannot >> delete it. > > Oh darn. I remember running into that in a completely different > context. What's the solution? Turn off the

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-30 Thread Guido van Rossum
On 7/29/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > >> (For whats its worth, Cygwin's python 2.5 (as installed on my system) fails > >> 2 of the tests in it's version of test_mailbox.py, both with "IOError: > >> [Errno 13] Permission denied"). > > I found that in many cases, this is a virus

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-30 Thread Joe Smith
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >>> If I patch io.py to default to "utf-8" rather than using the filesystem >>> encoding (ascii), that fixes a few more things. (test_coding.py and >>> test_minidom.py) >> >> How come the filesystem decoding is set to

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-29 Thread Martin v. Löwis
>> If I patch io.py to default to "utf-8" rather than using the filesystem >> encoding (ascii), that fixes a few more things. (test_coding.py and >> test_minidom.py) > > How come the filesystem decoding is set to ASCII? I guess there are two problems: a) MS_WINDOWS isn't defined, and the relevant

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-29 Thread Guido van Rossum
On 7/29/07, Joe Smith <[EMAIL PROTECTED]> wrote: > There are still some problems with the 'Python' directory for example. This > is because of a change in the internals of Cygwin. > Cygwin does have "managed mounts" which allow for case sensitivity. > Compiling Python inside a managed mount elimina

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-29 Thread Guido van Rossum
On 7/29/07, Joe Smith <[EMAIL PROTECTED]> wrote: > What I have found is that (on CYGWIN) all of marshal seems to work fine > except for marshal.load(). > marshal.dump()'s output can be read by 2.5's marshal.load() without problem. > 3k's marshal.load() will not > load the data from 3k's marshal.dum

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-29 Thread Joe Smith
"Joe Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Guido van Rossum" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On 7/18/07, Joe Smith <[EMAIL PROTECTED]> wrote: >>> >> I'm wondering if the recusion limit on my build is getting set too >>> >> low >>

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-29 Thread Joe Smith
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 7/18/07, Joe Smith <[EMAIL PROTECTED]> wrote: >> >> I'm wondering if the recusion limit on my build is getting set too low >> >> somehow. >> > >> > Can you find out what it is? sys.getrecursionlimit(). >> >> Hmm..

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-18 Thread Guido van Rossum
On 7/18/07, Joe Smith <[EMAIL PROTECTED]> wrote: > >> I'm wondering if the recusion limit on my build is getting set too low > >> somehow. > > > > Can you find out what it is? sys.getrecursionlimit(). > > Hmm... It is a limit of 1000. > That is probably large enough, no? Yes, that's what it is fo

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-18 Thread Joe Smith
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 7/18/07, Joe Smith <[EMAIL PROTECTED]> wrote: >> >> "Guido van Rossum" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> > On 7/17/07, Joe Smith <[EMAIL PROTECTED]> wrote: >> >> Building Py3k_strun

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-18 Thread Guido van Rossum
On 7/18/07, Joe Smith <[EMAIL PROTECTED]> wrote: > > "Guido van Rossum" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On 7/17/07, Joe Smith <[EMAIL PROTECTED]> wrote: > >> Building Py3k_struni under Cygwin I've noticed a few more tests failing > >> than > >> the wiki shows. > >>

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-18 Thread Joe Smith
"Guido van Rossum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 7/17/07, Joe Smith <[EMAIL PROTECTED]> wrote: >> Building Py3k_struni under Cygwin I've noticed a few more tests failing >> than >> the wiki shows. >> These are using SVN revision 56413. >> >> Some spurious error

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-18 Thread Guido van Rossum
On 7/17/07, Joe Smith <[EMAIL PROTECTED]> wrote: > Building Py3k_struni under Cygwin I've noticed a few more tests failing than > the wiki shows. > These are using SVN revision 56413. > > Some spurious errors seem to occur if Python/ is not remaned temporally. I > have not included those. (This is

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-18 Thread Guido van Rossum
On 7/18/07, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: > Hello, > > 2007/7/17, Joe Smith wrote: > > Building Py3k_struni under Cygwin I've noticed a few more tests failing than > > the wiki shows. > > These are using SVN revision 56413. > > > > Some spurious errors seem to occur if Python/ is

Re: [Python-3000] Py3k_struni additional test failures under cygwin

2007-07-18 Thread Amaury Forgeot d'Arc
Hello, 2007/7/17, Joe Smith wrote: > Building Py3k_struni under Cygwin I've noticed a few more tests failing than > the wiki shows. > These are using SVN revision 56413. > > Some spurious errors seem to occur if Python/ is not remaned temporally. I > have not included those. (This is an oddity of

[Python-3000] Py3k_struni additional test failures under cygwin

2007-07-17 Thread Joe Smith
Building Py3k_struni under Cygwin I've noticed a few more tests failing than the wiki shows. These are using SVN revision 56413. Some spurious errors seem to occur if Python/ is not remaned temporally. I have not included those. (This is an oddity of the cygwin '.exe' autohandling combined with