[Python-Dev] More new Windos test failures (original) (raw)
Brett Cannon drifty@alum.berkeley.edu
Fri, 25 Apr 2003 15:41:17 -0700 (PDT)
- Previous message: [Python-Dev] More new Windos test failures
- Next message: [Python-Dev] More new Windos test failures
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Tim Peters]
testurllib (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: testfileno (main.urlopenFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/testurllib.py", line 68, in testfileno "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: testiter (main.urlopenFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/testurllib.py", line 88, in testiter self.assertEqual(line, self.text) File "C:\Code\python\lib\unittest.py", line 292, in failUnlessEqual _raise self.failureException, _ AssertionError: 'testurllib: urlopenFileTests\r\n' != 'testurllib: urlopenFileTests\n' ====================================================================== FAIL: testread (main.urlopenFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/testurllib.py", line 48, in testread self.assertEqual(self.text, self.returnedobj.read()) File "C:\Code\python\lib\unittest.py", line 292, in failUnlessEqual _raise self.failureException, _ AssertionError: 'testurllib: urlopenFileTests\n' != 'testurllib: urlopenFileTests\r\n' ====================================================================== FAIL: testreadline (main.urlopenFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/testurllib.py", line 51, in testreadline self.assertEqual(self.text, self.returnedobj.readline()) File "C:\Code\python\lib\unittest.py", line 292, in failUnlessEqual _raise self.failureException, _ AssertionError: 'testurllib: urlopenFileTests\n' != 'testurllib: urlopenFileTests\r\n' ====================================================================== FAIL: testreadlines (main.urlopenFileTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "../lib/test/testurllib.py", line 61, in testreadlines "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)
- Previous message: [Python-Dev] More new Windos test failures
- Next message: [Python-Dev] More new Windos test failures
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]