MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / noop_if_monkey_patched

Function noop_if_monkey_patched

tests/unit/io/utils.py:139–146  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

137
138
139def noop_if_monkey_patched(f):
140 if is_monkey_patched():
141 @wraps(f)
142 def noop(*args, **kwargs):
143 return
144 return noop
145
146 return f
147
148
149class TimerTestMixin(object):

Callers

nothing calls this directly

Calls 1

is_monkey_patchedFunction · 0.90

Tested by

no test coverage detected