aports/main/py3-future/test_ftp.patch
Natanael Copa 1fc2888f0c main/py3-future: move from main due to py3-pefile->ukify
needed by py3-pefile which is needed by ukify (systemd-boot)
2025-05-27 14:23:10 +00:00

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