`ResourceDenied` raised in `TransientResource` but not imported in `test_urllib2net` · Issue #93112 · python/cpython · GitHub
Skip to content

ResourceDenied raised in TransientResource but not imported in test_urllib2net #93112

Description

@The-Compiler

Bug report

TransientResource was moved out of test.support in 311110a (GH-20812) by @vstinner, thus making ResourceDenied undefined here:

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions