1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 19:29:53 +03:00
aports/community/py3-future/test_ftp.patch
Natanael Copa ddfd0d1f8b community/py3-future: move from main
nothing in main depends on it
2025-04-22 11:25:18 +02:00

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"),