]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-93112: Fix missing ResourceDenied import in test_urllib2net (#93113)
authorFlorian Bruhin <me@the-compiler.org>
Tue, 24 May 2022 12:09:52 +0000 (14:09 +0200)
committerGitHub <noreply@github.com>
Tue, 24 May 2022 12:09:52 +0000 (14:09 +0200)
The code was moved out of test.support in
311110abcd8ab648dbf1803e36a8ba5d93fa019b (GH-20812), thus making
ResourceDenied undefined.

Lib/test/test_urllib2net.py

index 04cfb492e454923e299864e6fac3c039f5afbcd8..5da41c37bbfb8eec6844d1f937957a915083c81e 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