[Python-bugs-list] [ python-Bugs-661340 ] test_httplib fails on the mac

SourceForge.net noreply@sourceforge.net
Tue, 14 Jan 2003 13:27:38 -0800


Bugs item #661340, was opened at 2003-01-02 22:13
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=661340&group_id=5470

Category: Python Interpreter Core
Group: Python 2.3
Status: Open
Resolution: None
Priority: 7
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jeremy Hylton (jhylton)
Summary: test_httplib fails on the mac

Initial Comment:
test_httplib fails on MacPython-OS9. This is because the output contains \r and \n characters, and this fails on MacOS9.

There are two problems really:
1. output/test_httplib is checked in as a text file, while it is a binary file (it contains some \r\n data) or even (brrr:-) mixed-mode (it also contains \n lineendings).
2. The output file is opened in text mode (when re-reading the data), so this can probably not be fixed by a simple cvs admin -kb.

I think that putting repr()s in the output in stead of raw strings is probably good enough, but you probably know better what is going on here.

----------------------------------------------------------------------

>Comment By: Jeremy Hylton (jhylton)
Date: 2003-01-14 21:27

Message:
Logged In: YES 
user_id=31392

I think the actual line-endings are uninteresting as far as
what the test is trying to do.  I've changed the test so
that it doesn't contain \r\n pairs.  I think the right thing
is to change the way debugging output is generated by
httplib, but that's a big project.  So I'll just change the
test to capture stdout and clean it before printing it.

(Checking coming as soon as sourceforge responds.)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=661340&group_id=5470