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

Function cpython_only

Lib/test/support/__init__.py:1346–1350  ·  view source on GitHub ↗

Decorator for tests only applicable on CPython.

(test)

Source from the content-addressed store, hash-verified

1344 return unittest.skip("resource {0!r} is not enabled".format(resource))
1345
1346def cpython_only(test):
1347 """
1348 Decorator for tests only applicable on CPython.
1349 """
1350 return impl_detail(cpython=True)(test)
1351
1352def impl_detail(msg=None, **guards):
1353 if check_impl_detail(**guards):

Callers 2

refcount_testFunction · 0.85

Calls 1

impl_detailFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…