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

Function cpython_only

Lib/test/support/__init__.py:1268–1272  ·  view source on GitHub ↗

Decorator for tests only applicable on CPython.

(test)

Source from the content-addressed store, hash-verified

1266 return unittest.skip("resource {0!r} is not enabled".format(resource))
1267
1268def cpython_only(test):
1269 """
1270 Decorator for tests only applicable on CPython.
1271 """
1272 return impl_detail(cpython=True)(test)
1273
1274def impl_detail(msg=None, **guards):
1275 if check_impl_detail(**guards):

Callers 2

refcount_testFunction · 0.85

Calls 1

impl_detailFunction · 0.85

Tested by

no test coverage detected