Bug report
TransientResource was moved out of test.support in 311110a (GH-20812) by @vstinner, thus making ResourceDenied undefined here:
|
raise ResourceDenied("an optional resource is not available") |
I don't see how to best reproduce this, but I will open a PR with a fix.
(Found by running flake8 over Lib/ out of curiosity, see #93010 (comment))
Your environment
- CPython versions tested on: (not tested, but affects) Python 3.11.0b1, 3.10.4
- Operating system and architecture: Archlinux x86_64
Bug report
TransientResourcewas moved out oftest.supportin 311110a (GH-20812) by @vstinner, thus makingResourceDeniedundefined here:cpython/Lib/test/test_urllib2net.py
Line 60 in a458be3
I don't see how to best reproduce this, but I will open a PR with a fix.
(Found by running
flake8overLib/out of curiosity, see #93010 (comment))Your environment