tests: fix fork FD sharing in unix_test.

This commit is contained in:
David Wilson 2018-10-26 11:08:12 +01:00
parent 0cf6019bac
commit c1c7e5171d
1 changed files with 2 additions and 0 deletions

View File

@ -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)