diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-02-22 11:42:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 11:42:28 (GMT) |
commit | 0f28af589bd23a1daceedfe03d920a619b03cb6c (patch) | |
tree | ea9d1e80466e0ba04134df87bef8681405f5127a /Lib/test/test_urllib2.py | |
parent | 3e9fb1a8390f84a3db56a398eb289fec487bc7da (diff) | |
download | cpython-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.py | 1 |
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 = [ |