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

Function wrapper

Lib/test/test_ssl.py:254–258  ·  view source on GitHub ↗
(*args, **kw)

Source from the content-addressed store, hash-verified

252 def decorator(func):
253 @functools.wraps(func)
254 def wrapper(*args, **kw):
255 if not has_tls_version(version):
256 raise unittest.SkipTest(f"{version} is not available.")
257 else:
258 return func(*args, **kw)
259 return wrapper
260 return decorator
261

Callers 1

test_staticmethodMethod · 0.70

Calls 2

has_tls_versionFunction · 0.85
funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…