test_urllib and test_socket fail on Win2K today. test_socket (I think Guido already knows about these): ====================================================================== ERROR: testIPv4toString (__main__.GeneralModuleTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/test_socket.py", line 322, in testIPv4toString from socket import inet_aton as f, inet_pton, AF_INET ImportError: cannot import name inet_pton ====================================================================== ERROR: testStringToIPv4 (__main__.GeneralModuleTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/test_socket.py", line 352, in testStringToIPv4 from socket import inet_ntoa as f, inet_ntop, AF_INET ImportError: cannot import name inet_ntop ---------------------------------------------------------------------- Ran 46 tests in 3.555s FAILED (errors=2) test_urllib (these may all be bad line-end assumptions): ====================================================================== FAIL: test_fileno (__main__.urlopen_FileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/test_urllib.py", line 68, in test_fileno "Reading on the file descriptor returned by fileno() " File "C:\Code\python\lib\unittest.py", line 292, in failUnlessEqual raise self.failureException, \ AssertionError: Reading on the file descriptor returned by fileno() did not return the expected text ====================================================================== FAIL: test_iter (__main__.urlopen_FileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/test_urllib.py", line 88, in test_iter self.assertEqual(line, self.text) File "C:\Code\python\lib\unittest.py", line 292, in failUnlessEqual raise self.failureException, \ AssertionError: 'test_urllib: urlopen_FileTests\r\n' != 'test_urllib: urlopen_FileTests\n' ====================================================================== FAIL: test_read (__main__.urlopen_FileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/test_urllib.py", line 48, in test_read self.assertEqual(self.text, self.returned_obj.read()) File "C:\Code\python\lib\unittest.py", line 292, in failUnlessEqual raise self.failureException, \ AssertionError: 'test_urllib: urlopen_FileTests\n' != 'test_urllib: urlopen_FileTests\r\n' ====================================================================== FAIL: test_readline (__main__.urlopen_FileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/test_urllib.py", line 51, in test_readline self.assertEqual(self.text, self.returned_obj.readline()) File "C:\Code\python\lib\unittest.py", line 292, in failUnlessEqual raise self.failureException, \ AssertionError: 'test_urllib: urlopen_FileTests\n' != 'test_urllib: urlopen_FileTests\r\n' ====================================================================== FAIL: test_readlines (__main__.urlopen_FileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/test_urllib.py", line 61, in test_readlines "readlines() returned improper text") File "C:\Code\python\lib\unittest.py", line 292, in failUnlessEqual raise self.failureException, \ AssertionError: readlines() returned improper text ---------------------------------------------------------------------- Ran 23 tests in 0.280s FAILED (failures=5)
participants (3)
-
Brett Cannon
-
Guido van Rossum
-
Tim Peters