From 778892eaaa095bce4923854fbed783f63437220d Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 26 Oct 2018 10:54:22 +0100 Subject: [PATCH] issue #76: call_function_test fix. --- tests/call_function_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/call_function_test.py b/tests/call_function_test.py index ce434b31..72991d62 100644 --- a/tests/call_function_test.py +++ b/tests/call_function_test.py @@ -103,7 +103,8 @@ class CallFunctionTest(testlib.RouterMixin, testlib.TestCase): def test_accepts_returns_context(self): context = self.local.call(func_returns_arg, self.local) - self.assertIsNot(context, self.local) + # Unpickling now deduplicates Context instances. + self.assertIs(context, self.local) self.assertEqual(context.context_id, self.local.context_id) self.assertEqual(context.name, self.local.name) @@ -124,7 +125,7 @@ class CallChainTest(testlib.RouterMixin, testlib.TestCase): klass = mitogen.parent.CallChain def setUp(self): - super(ChainTest, self).setUp() + super(CallChainTest, self).setUp() self.local = self.router.fork() def test_subsequent_calls_produce_same_error(self):