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

Function skipdec

Lib/test/test_socket.py:859–863  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

857 def client_pass(*args, **kwargs):
858 pass
859 def skipdec(obj):
860 retval = unittest.skip(reason)(obj)
861 if not isinstance(obj, type):
862 retval.client_skip = lambda f: client_pass
863 return retval
864 def noskipdec(obj):
865 if not (isinstance(obj, type) or hasattr(obj, "client_skip")):
866 obj.client_skip = lambda f: f

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
skipMethod · 0.45

Tested by

no test coverage detected