summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2019-09-05 00:34:35 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-09-05 00:34:35 (GMT)
commit87bd2071c756188b6cd577889fb1682831142ceb (patch)
treef611951d4ebbb460748aeb26b8e7af4b67c9ed5f /Lib/test/test_urllib2.py
parent6cd9666ce93658ae91f07b396aa6932b362a61d3 (diff)
downloadcpython-87bd2071c756188b6cd577889fb1682831142ceb.zip
cpython-87bd2071c756188b6cd577889fb1682831142ceb.tar.gz
cpython-87bd2071c756188b6cd577889fb1682831142ceb.tar.bz2
bpo-22347: Update mimetypes.guess_type to allow proper parsing of URLs (GH-15522)
https://bugs.python.org/issue22347
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r--Lib/test/test_urllib2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 7b576db..c228fa7 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -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