Commit 3775ebcc 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

parent f9e9c1a1
......@@ -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