mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
[3.11] gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100) (gh-102117)
gh-101936: Update the default value of fp from io.StringIO to io.BytesIO (gh-102100)
(cherry picked from commit 0d4c7fcd4f
)
Co-authored-by: Long Vo <long.vo@linecorp.com>
This commit is contained in:
parent
528e91c067
commit
edbde8feb7
4 changed files with 5 additions and 1 deletions
|
@ -1828,6 +1828,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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue