[Python-checkins] GH-93112: Fix missing ResourceDenied import in test_urllib2net (#93113)
vstinner
webhook-mailer at python.org
Tue May 24 08:10:26 EDT 2022
https://github.com/python/cpython/commit/37c9a351b15c3fc4fcdca5dcb9ce19e51d7d2dd7
commit: 37c9a351b15c3fc4fcdca5dcb9ce19e51d7d2dd7
branch: main
author: Florian Bruhin <me at the-compiler.org>
committer: vstinner <vstinner at python.org>
date: 2022-05-24T14:09:52+02:00
summary:
GH-93112: Fix missing ResourceDenied import in test_urllib2net (#93113)
The code was moved out of test.support in
311110abcd8ab648dbf1803e36a8ba5d93fa019b (GH-20812), thus making
ResourceDenied undefined.
files:
M Lib/test/test_urllib2net.py
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index 04cfb492e4549..5da41c37bbfb8 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -3,6 +3,7 @@
from test import support
from test.support import os_helper
from test.support import socket_helper
+from test.support import ResourceDenied
from test.test_urllib2 import sanepathname2url
import os
More information about the Python-checkins
mailing list