MCPcopy Index your code
hub / github.com/python/cpython / ResourceDenied

Class ResourceDenied

Lib/test/support/__init__.py:145–151  ·  view source on GitHub ↗

Test skipped because it requested a disallowed resource. This is raised when a test calls requires() for a resource that has not be enabled. It is used to distinguish between expected and unexpected skips.

Source from the content-addressed store, hash-verified

143 """Test did not run any subtests."""
144
145class ResourceDenied(unittest.SkipTest):
146 """Test skipped because it requested a disallowed resource.
147
148 This is raised when a test calls requires() for a resource that
149 has not be enabled. It is used to distinguish between expected
150 and unexpected skips.
151 """
152
153def anticipate_failure(condition):
154 """Decorator to mark a test that is known to be broken in some cases

Callers 2

__exit__Method · 0.90
requiresFunction · 0.85

Calls

no outgoing calls

Tested by 1

__exit__Method · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…