]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-93112: Fix missing ResourceDenied import in test_urllib2net (GH-93113)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 May 2022 12:32:19 +0000 (05:32 -0700)
committerGitHub <noreply@github.com>
Tue, 24 May 2022 12:32:19 +0000 (05:32 -0700)
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 <me@the-compiler.org>
Lib/test/test_urllib2net.py

index aa41811560c789114cd80dea6d0f1da87a22fcd4..a7e7c9f0b91e26207842a7d1c965511e2482acea 100644 (file)
@@ -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