From: Michael Foord Date: Sat, 20 Nov 2010 15:47:56 +0000 (+0000) Subject: Issue 10326: further extend test for unpickling to ensure type lookup mechanism works... X-Git-Tag: v3.2b1~308 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b357fb7bed55be24eba936f7ef9a13e964da89dc;p=python Issue 10326: further extend test for unpickling to ensure type lookup mechanism works after unpickling --- diff --git a/Lib/unittest/test/test_case.py b/Lib/unittest/test/test_case.py index 6aff90f1f1..18c74e91ce 100644 --- a/Lib/unittest/test/test_case.py +++ b/Lib/unittest/test/test_case.py @@ -1109,3 +1109,7 @@ test case pickled_test = pickle.dumps(test, protocol=protocol) unpickled_test = pickle.loads(pickled_test) self.assertEqual(test, unpickled_test) + + # exercise the TestCase instance in a way that will invoke + # the type equality lookup mechanism + unpickled_test.assertEqual(set(), set())