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

Method test_dealloc_warn

Lib/test/test_ssl.py:693–699  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

691
692 @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: "<ssl.SSLSocket fd=3, family=2, type=1, proto=0, laddr=('0.0.0.0', 0)>" not found in "unclosed <socket.socket fd=3, family=2, type=1, proto=0, laddr=('0.0.0.0', 0)>"
693 def test_dealloc_warn(self):
694 ss = test_wrap_socket(socket.socket(socket.AF_INET))
695 r = repr(ss)
696 with self.assertWarns(ResourceWarning) as cm:
697 ss = None
698 support.gc_collect()
699 self.assertIn(r, str(cm.warning.args[0]))
700
701 def test_get_default_verify_paths(self):
702 paths = ssl.get_default_verify_paths()

Callers

nothing calls this directly

Calls 6

test_wrap_socketFunction · 0.85
reprFunction · 0.85
strFunction · 0.85
socketMethod · 0.80
assertWarnsMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected