Commit 872cbc60 authored by Denis Bilenko's avatar Denis Bilenko

test__server.py: add a test case that check that creating a server does not create a GC cycle

--HG--
extra : transplant_source : %88h%A9%F2P%EC%CB%D0%D5%1A%A1h%E8%F1%7C%AE%818dT
parent 056ba533
......@@ -205,6 +205,10 @@ class TestDefaultSpawn(TestCase):
self.assertConnectionRefused()
self._test_server_start_stop(restartable=False)
def test_subclass_just_create(self):
self.server = self.ServerSubClass(self.get_listener())
self.assertNotAccepted()
def test_subclass_with_socket(self):
self.server = self.ServerSubClass(self.get_listener())
self.server.reuse_addr = 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment