https://github.com/python/cpython/commit/e4d90be84536746a966478acc4c0cf43a201f492
commit: e4d90be84536746a966478acc4c0cf43a201f492
branch: main
author: Michał Górny <[email protected]>
committer: Eclips4 <[email protected]>
date: 2024-10-16T13:24:41Z
summary:
gh-125584: Require network resource in
``test_urllib2.HandlerTests.test_ftp_error`` (#125586)
files:
M Lib/test/test_urllib2.py
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 19179fdc9508ca..b90ccc2f125b93 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -794,6 +794,7 @@ def connect_ftp(self, user, passwd, host, port, dirs,
self.assertEqual(headers.get("Content-type"), mimetype)
self.assertEqual(int(headers["Content-length"]), len(data))
+ @support.requires_resource("network")
def test_ftp_error(self):
class ErrorFTPHandler(urllib.request.FTPHandler):
def __init__(self, exception):
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]