[Tim Peters]
test_urllib (these may all be bad line-end assumptions):
Yep, it looks like it is line-ending issues. Is this still happening even after Guido changed the test to open the files in binary? If it is I will change the tests after Guido give the all clear for CVS checkins again and strip all text before comparing.
====================================================================== 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)