bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522)

https://bugs.python.org/issue22347
This commit is contained in:
Dong-hee Na 2019-09-05 09:34:35 +09:00 committed by Miss Islington (bot)
parent 6cd9666ce9
commit 87bd2071c7
4 changed files with 13 additions and 2 deletions

View file

@ -742,7 +742,7 @@ class HandlerTests(unittest.TestCase):
["foo", "bar"], "", None),
("ftp://localhost/baz.gif;type=a",
"localhost", ftplib.FTP_PORT, "", "", "A",
[], "baz.gif", None), # XXX really this should guess image/gif
[], "baz.gif", "image/gif"),
]:
req = Request(url)
req.timeout = None