[Python-Dev] Failin tests on Windows
Guido van Rossum
Fri, 25 Apr 2003 11:21:55 -0400
> test_urllib.py is crashing on my fresh WinMe build:
> test_fileno (__main__.urlopen_FileTests) ... FAIL
> test_iter (__main__.urlopen_FileTests) ... FAIL
> test_read (__main__.urlopen_FileTests) ... FAIL
> test_readline (__main__.urlopen_FileTests) ... FAIL
> test_readlines (__main__.urlopen_FileTests) ... FAIL
Should be fixed now -- I'm writing the file with test data in binary
I think that it would be preferably if the socket._fileobject class
would actually interpret the mode argument, but it's never done that,
so I'm not in a hurry to add this feature to this already hairy class.
(Better wait until the new "sio" class -- see sandbox.)
> Two of the test cases are failing in test_socket.py
> on a fresh build for WinMe:
> testIPv4toString (__main__.GeneralModuleTests) ... ERROR
> testStringToIPv4 (__main__.GeneralModuleTests) ... ERROR
Fixed too, by skipping the tests of inet_ntop() and inet_pton() when
they don't exist.
All tests now pass for me, both on Linux (Red Hat 7.8) and Windows
(Win 98 second edition).
--Guido van Rossum (home page: http://www.python.org/~guido/)