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

Function requires_working_socket

Lib/test/support/__init__.py:647–657  ·  view source on GitHub ↗

Skip tests or modules that require working sockets Can be used as a function/class decorator or to skip an entire module.

(*, module=False)

Source from the content-addressed store, hash-verified

645)
646
647def requires_working_socket(*, module=False):
648 """Skip tests or modules that require working sockets
649
650 Can be used as a function/class decorator or to skip an entire module.
651 """
652 msg = "requires socket support"
653 if module:
654 if not has_socket_support:
655 raise unittest.SkipTest(msg)
656 else:
657 return unittest.skipUnless(has_socket_support, msg)
658
659# Does strftime() support glibc extension like '%4Y'?
660has_strftime_extensions = False

Callers 2

test_poll.pyFile · 0.90
test_asyncgen.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected