Bugs item #776202, was opened at 2003-07-23 05:02 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=776202&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Macintosh Group: Python 2.6 Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Jack Jansen (jackjansen) Assigned to: A.M. Kuchling (akuchling) Summary: MacOS9: test_uu fails Initial Comment: test_uu fails on MacPython-OS9: AssertionError: 'The smooth-scaled python crept over the sleeping dog\r' != 'The smooth-scaled python crept over the sleeping dog\n' Presumably it mixes binary and text I/O. ---------------------------------------------------------------------- >Comment By: Neal Norwitz (nnorwitz) Date: 2007-01-17 22:17 Message: Logged In: YES user_id=33168 Originator: NO r53481 partially reverted the changes that were failing on Windows. test_encode (test.test_uu.UUFileTest) ... FAIL ---------------------------------------------------------------------- Comment By: A.M. Kuchling (akuchling) Date: 2006-12-22 08:43 Message: Logged In: YES user_id=11375 Originator: NO Applied in rev. 53145. ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2006-12-22 07:46 Message: Logged In: YES user_id=45365 Originator: YES MacOS9 is long dead, uuencoded files are probably even longer dead... If the patch looks good: apply it. But I wouldn't spend more than a few milliseconds on the whole issue:-) ---------------------------------------------------------------------- Comment By: A.M. Kuchling (akuchling) Date: 2006-12-22 05:33 Message: Logged In: YES user_id=11375 Originator: NO Should the suggested patch be applied, simply for the sake of consistency in test_uu? It's probably difficult to replicate this bug now; does Jack even have a MacOS 9 installation any more? ---------------------------------------------------------------------- Comment By: Walter Dörwald (doerwalter) Date: 2003-08-04 06:33 Message: Logged In: YES user_id=89016 Can you try the following patch (diff.txt)? The patch changes all open() statements to use text mode. I've tested the patch on Windows and Linux. I don't know why the old test mixed text and binary mode. The test should have failed even before the port to PyUnit. ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2003-08-04 04:41 Message: Logged In: YES user_id=45365 It's in test_decode. The log is attached. ---------------------------------------------------------------------- Comment By: Walter Dörwald (doerwalter) Date: 2003-08-04 04:21 Message: Logged In: YES user_id=89016 It would help to see a complete traceback (Is the error in test_encode or test_decode?) ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2003-07-31 12:50 Message: Logged In: YES user_id=45365 I changed the open call to use 'rU' in stead of 'r' (test_uu rev. 1.6.6.1). I get the distinct impression that this isn't the right fix, though, but that the real problem is elsewhere (mixing up text and binary I/O), so I'd like a second opinion. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=776202&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com