From c1c7e5171dc8baed7c1471955769a966529d81ec Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 26 Oct 2018 11:08:12 +0100 Subject: [PATCH] tests: fix fork FD sharing in unix_test. --- tests/unix_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unix_test.py b/tests/unix_test.py index 6225de7d..67265c81 100644 --- a/tests/unix_test.py +++ b/tests/unix_test.py @@ -7,6 +7,7 @@ import time import unittest2 import mitogen +import mitogen.fork import mitogen.master import mitogen.service import mitogen.unix @@ -110,6 +111,7 @@ class ClientTest(unittest2.TestCase): if os.fork(): self._test_simple_client(path) else: + mitogen.fork.on_fork() self._test_simple_server(path)