issue #477: clean up globals after unix_test.

issue510
David Wilson 5 years ago
parent 30d933b299
commit b6634194af

@ -132,7 +132,13 @@ class ClientTest(testlib.TestCase):
proc = subprocess.Popen(
[sys.executable, __file__, 'ClientTest_server', path]
)
self._test_simple_client(path)
try:
self._test_simple_client(path)
finally:
# TODO :)
mitogen.context_id = 0
mitogen.parent_id = None
mitogen.parent_ids = []
proc.wait()

Loading…
Cancel
Save