summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-29 08:39:48 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-29 08:39:48 (GMT)
commit48e6a8c88a69adbdc7c3bf9adef5696828b1c5fe (patch)
tree45c7d23b65375342454fa469c9479b22f6c69a77 /Lib/test/test_httplib.py
parenta8c2a8aa8dcf236355348adf696d2aae8fbe45b2 (diff)
parent50254c57cd7a562441b7ff385d59c0255301f3ff (diff)
downloadcpython-48e6a8c88a69adbdc7c3bf9adef5696828b1c5fe.zip
cpython-48e6a8c88a69adbdc7c3bf9adef5696828b1c5fe.tar.gz
cpython-48e6a8c88a69adbdc7c3bf9adef5696828b1c5fe.tar.bz2
Issue #18743: Fix references to non-existant "StringIO" module
in docstrings and comments.
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r--Lib/test/test_httplib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index b3688af..778e919 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -53,8 +53,8 @@ class EPipeSocket(FakeSocket):
def close(self):
pass
-class NoEOFStringIO(io.BytesIO):
- """Like StringIO, but raises AssertionError on EOF.
+class NoEOFBytesIO(io.BytesIO):
+ """Like BytesIO, but raises AssertionError on EOF.
This is used below to test that http.client doesn't try to read
more from the underlying file than it should.
@@ -326,7 +326,7 @@ class BasicTest(TestCase):
'HTTP/1.1 200 OK\r\n'
'Content-Length: 14432\r\n'
'\r\n',
- NoEOFStringIO)
+ NoEOFBytesIO)
resp = client.HTTPResponse(sock, method="HEAD")
resp.begin()
if resp.read():
@@ -339,7 +339,7 @@ class BasicTest(TestCase):
'HTTP/1.1 200 OK\r\n'
'Content-Length: 14432\r\n'
'\r\n',
- NoEOFStringIO)
+ NoEOFBytesIO)
resp = client.HTTPResponse(sock, method="HEAD")
resp.begin()
b = bytearray(5)