Skip to content

Commit 62b6723

Browse files
mweineltkovidgoyal
authored andcommitted
Fix test_ftp mime type expectation on 3.11+
Closes: #94
1 parent 73e9411 commit 62b6723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_urllib2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ def connect_ftp(self, user, passwd, host, port, dirs, timeout):
864864
["foo", "bar"], _sockettimeout._GLOBAL_DEFAULT_TIMEOUT, "", None),
865865
("ftp://localhost/baz.gif;type=a", "localhost", ftplib.FTP_PORT,
866866
"A", [], _sockettimeout._GLOBAL_DEFAULT_TIMEOUT, "baz.gif",
867-
None), # TODO: really this should guess image/gif
867+
"image/gif" if sys.version_info >= (3, 11) else None),
868868
]:
869869
req = Request(url, timeout=timeout)
870870
r = h.ftp_open(req)

0 commit comments

Comments
 (0)