From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 24 May 2022 12:37:06 +0000 (-0700) Subject: GH-93112: Fix missing ResourceDenied import in test_urllib2net (GH-93113) X-Git-Tag: v3.11.0b2~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=719edfaf794a8c117c31f7bbe97d9afc2effbac4;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 04cfb492e454..5da41c37bbfb 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