[Python-3000-checkins] r56717 - python/branches/py3k-struni/Lib/test/test_urllib2net.py
jeremy.hylton
python-3000-checkins at python.org
Fri Aug 3 23:03:08 CEST 2007
Author: jeremy.hylton
Date: Fri Aug 3 23:03:02 2007
New Revision: 56717
Modified:
python/branches/py3k-struni/Lib/test/test_urllib2net.py
Log:
Fix an absurdly invasive test.
Checks that an io object somewhere in the stack of wrappers is
actually closed. --This line, and those below, will be ignored--
M test_urllib2net.py
Modified: python/branches/py3k-struni/Lib/test/test_urllib2net.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_urllib2net.py (original)
+++ python/branches/py3k-struni/Lib/test/test_urllib2net.py Fri Aug 3 23:03:02 2007
@@ -75,11 +75,9 @@
# delve deep into response to fetch socket._socketobject
response = urllib2.urlopen("http://www.python.org/")
abused_fileobject = response.fp
- self.assert_(abused_fileobject.__class__ is socket._fileobject)
- httpresponse = abused_fileobject._sock
+ httpresponse = abused_fileobject.raw
self.assert_(httpresponse.__class__ is httplib.HTTPResponse)
fileobject = httpresponse.fp
- self.assert_(fileobject.__class__ is socket._fileobject)
self.assert_(not fileobject.closed)
response.close()
More information about the Python-3000-checkins
mailing list