(self)
| 548 | |
| 549 | @support.cpython_only |
| 550 | def test_refcycle(self): |
| 551 | # Issue #7943: an SSL object doesn't create reference cycles with |
| 552 | # itself. |
| 553 | s = socket.socket(socket.AF_INET) |
| 554 | ss = test_wrap_socket(s) |
| 555 | wr = weakref.ref(ss) |
| 556 | with warnings_helper.check_warnings(("", ResourceWarning)): |
| 557 | del ss |
| 558 | self.assertEqual(wr(), None) |
| 559 | |
| 560 | def test_wrapped_unconnected(self): |
| 561 | # Methods on an unconnected SSLSocket propagate the original |
nothing calls this directly
no test coverage detected