From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 24 May 2022 12:32:19 +0000 (-0700) Subject: GH-93112: Fix missing ResourceDenied import in test_urllib2net (GH-93113) X-Git-Tag: v3.10.5~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db2b1e1830b74f5e15abc3bac3fd67e35ca39951;p=thirdparty%2FPython%2Fcpython.git GH-93112: Fix missing ResourceDenied import in test_urllib2net (GH-93113) The code was moved out of test.support in 311110abcd8ab648dbf1803e36a8ba5d93fa019b (GH-20812), thus making ResourceDenied undefined. (cherry picked from commit 37c9a351b15c3fc4fcdca5dcb9ce19e51d7d2dd7) Co-authored-by: Florian Bruhin --- diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index aa41811560c7..a7e7c9f0b91e 100644 --- a/Lib/test/test_urllib2net.py +++ b/Lib/test/test_urllib2net.py @@ -3,6 +3,7 @@ import unittest 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