From bc801bc2ed32c73cf0fb02b379a37cf936f4611e Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sat, 30 Sep 2017 20:58:05 +0530 Subject: [PATCH] Allow call_function_test to succeed depite testlib import. --- tests/testlib.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/testlib.py b/tests/testlib.py index 729461f8..4e8f7fc6 100644 --- a/tests/testlib.py +++ b/tests/testlib.py @@ -5,10 +5,9 @@ import sys import unittest import urlparse -import mock - import mitogen.master -import docker +if mitogen.is_master: # TODO: shouldn't be necessary. + import docker DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')