(self)
| 629 | |
| 630 | @support.cpython_only |
| 631 | def test_refcycle(self): |
| 632 | # Issue #7943: an SSL object doesn't create reference cycles with |
| 633 | # itself. |
| 634 | s = socket.socket(socket.AF_INET) |
| 635 | ss = test_wrap_socket(s) |
| 636 | wr = weakref.ref(ss) |
| 637 | with warnings_helper.check_warnings(("", ResourceWarning)): |
| 638 | del ss |
| 639 | self.assertEqual(wr(), None) |
| 640 | |
| 641 | def test_wrapped_unconnected(self): |
| 642 | # Methods on an unconnected SSLSocket propagate the original |
nothing calls this directly
no test coverage detected