[Python-checkins] GH-93112: Fix missing ResourceDenied import in test_urllib2net (GH-93113)

miss-islington webhook-mailer at python.org
Tue May 24 08:37:28 EDT 2022


https://github.com/python/cpython/commit/719edfaf794a8c117c31f7bbe97d9afc2effbac4
commit: 719edfaf794a8c117c31f7bbe97d9afc2effbac4
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-05-24T05:37:06-07:00
summary:

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 <me at the-compiler.org>

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