2024-10-16 13:13:17 +00:00
|
|
|
---
|
2024-10-17 05:35:58 +00:00
|
|
|
Lib/test/test_urllib2.py | 1 +
|
|
|
|
|
1 file changed, 1 insertion(+)
|
2024-10-16 13:13:17 +00:00
|
|
|
|
|
|
|
|
--- a/Lib/test/test_urllib2.py
|
|
|
|
|
+++ b/Lib/test/test_urllib2.py
|
2024-10-17 05:35:58 +00:00
|
|
|
@@ -794,6 +794,7 @@ class HandlerTests(unittest.TestCase):
|
|
|
|
|
self.assertEqual(headers.get("Content-type"), mimetype)
|
2024-10-16 13:13:17 +00:00
|
|
|
self.assertEqual(int(headers["Content-length"]), len(data))
|
|
|
|
|
|
2024-10-17 10:31:44 +00:00
|
|
|
+ @support.requires_resource('network')
|
2024-10-16 13:13:17 +00:00
|
|
|
def test_ftp_error(self):
|
|
|
|
|
class ErrorFTPHandler(urllib.request.FTPHandler):
|
|
|
|
|
def __init__(self, exception):
|