MCPcopy Index your code
hub / github.com/RustPython/RustPython / ResourceDenied

Class ResourceDenied

Lib/test/support/__init__.py:143–149  ·  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

141 """Test did not run any subtests."""
142
143class ResourceDenied(unittest.SkipTest):
144 """Test skipped because it requested a disallowed resource.
145
146 This is raised when a test calls requires() for a resource that
147 has not be enabled. It is used to distinguish between expected
148 and unexpected skips.
149 """
150
151def anticipate_failure(condition):
152 """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