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

Function skip_if_tcp_blackhole

Lib/test/support/socket_helper.py:337–343  ·  view source on GitHub ↗

Decorator skipping test if TCP blackhole is enabled.

(test)

Source from the content-addressed store, hash-verified

335
336
337def skip_if_tcp_blackhole(test):
338 """Decorator skipping test if TCP blackhole is enabled."""
339 skip_if = unittest.skipIf(
340 tcp_blackhole(),
341 "TCP blackhole is enabled (sysctl net.inet.tcp.blackhole)"
342 )
343 return skip_if(test)

Callers

nothing calls this directly

Calls 1

tcp_blackholeFunction · 0.85

Tested by

no test coverage detected