Skip to content

ResourceDenied raised in TransientResource but not imported in test_urllib2net #93112

@The-Compiler

Description

@The-Compiler

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

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