[Python-3000] Py3k_struni additional test failures under cygwin (original) (raw)
Guido van Rossum guido at python.org
Mon Jul 30 02:27:20 CEST 2007
- Previous message: [Python-3000] Py3k_struni additional test failures under cygwin
- Next message: [Python-3000] Py3k_struni additional test failures under cygwin
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 7/29/07, Joe Smith <unknown_kev_cat at hotmail.com> 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 eliminates those issues. So it is not a terribly big deal.
If I patch io.py to default to "utf-8" rather than using the filesystem encoding (ascii), that fixes a few more things. (testcoding.py and testminidom.py)
How come the filesystem decoding is set to ASCII?
Then there are only 2 test failures remaining that are not listed on the wiki. One of them is a very minor issue in testplatform.py. The other is a more complicated problem with testmailbox.py
Please do add these to the wiki, so we won't forget them. If you want CYGWIN to work, existing CYGWIN users will have to contribute patches.
First the testplatform problem. sys.executable lacks the ".exe" suffix. In order for libcver to work it would need to be passed the exe suffix. The cygwin specific hack in the testplatform.py does not work if when using a managed mount because a managed mount is case sensitive, so isdir(executable) returns false. (Using libcver with no arguments also fails for the same basic reason. (although there is no cygwin hack in that case.)) That said, using libcver on cygwin would not be meaningful because cygwin uses newlib instead of libc/glibc.
The mailbox.py problem seems troubling, I'm getting exceptions of type "IOError: [Errno 13] Permission denied" on "./@test" (aka. testsupport.TESTFN) . This is true for all tests after TestMbox's run of testadd(). All of TestMailDir works fine. TestMbox's testadd() works fine, but all the remaining tests that use "./@test" fail. Sounds like something is not getting cleaned up correctly. That said no "@test" file or directory is left behind after the end of the test.
Sounds like test_add() changes the perms on the file.
(For whats its worth, Cygwin's python 2.5 (as installed on my system) fails 2 of the tests in it's version of testmailbox.py, both with "IOError: [Errno 13] Permission denied").
OK, so the fix may need to be backported -- or perhaps (if it's easier to find and fix in 2.5) forward ported.
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] Py3k_struni additional test failures under cygwin
- Next message: [Python-3000] Py3k_struni additional test failures under cygwin
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]