mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 19:29:53 +03:00
15 lines
630 B
Diff
15 lines
630 B
Diff
Adapted from https://github.com/python-mechanize/mechanize/commit/1324b09b661aaac7d4cdc7e1e9d49e1c3851db2c
|
|
|
|
|
|
--- a/tests/test_future/test_urllib2.py
|
|
+++ b/tests/test_future/test_urllib2.py
|
|
@@ -709,7 +709,8 @@
|
|
["foo", "bar"], "", None),
|
|
("ftp://localhost/baz.gif;type=a",
|
|
"localhost", ftplib.FTP_PORT, "", "", "A",
|
|
- [], "baz.gif", None),
|
|
+ [], "baz.gif",
|
|
+ "image/gif" if sys.version_info >= (3, 11) else None),
|
|
("ftp://localhost/baz.gif",
|
|
"localhost", ftplib.FTP_PORT, "", "", "I",
|
|
[], "baz.gif", "image/gif"),
|