summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-02-22 11:42:28 (GMT)
committerGitHub <noreply@github.com>2023-02-22 11:42:28 (GMT)
commit0f28af589bd23a1daceedfe03d920a619b03cb6c (patch)
treeea9d1e80466e0ba04134df87bef8681405f5127a /Lib/test/test_urllib2.py
parent3e9fb1a8390f84a3db56a398eb289fec487bc7da (diff)
downloadcpython-0f28af589bd23a1daceedfe03d920a619b03cb6c.zip
cpython-0f28af589bd23a1daceedfe03d920a619b03cb6c.tar.gz
cpython-0f28af589bd23a1daceedfe03d920a619b03cb6c.tar.bz2
[3.10] gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100) (#102118)
gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100) (cherry picked from commit 0d4c7fcd4f078708a5ac6499af378ce5ee8eb211) Co-authored-by: Long Vo <long.vo@linecorp.com>
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r--Lib/test/test_urllib2.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 4ef391c..55f45db 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -1826,6 +1826,7 @@ class MiscTests(unittest.TestCase):
def test_gh_98778(self):
x = urllib.error.HTTPError("url", 405, "METHOD NOT ALLOWED", None, None)
self.assertEqual(getattr(x, "__notes__", ()), ())
+ self.assertIsInstance(x.fp.read(), bytes)
def test_parse_proxy(self):
parse_proxy_test_cases = [