]> granicus.if.org Git - python/commitdiff
Issue 10326: further extend test for unpickling to ensure type lookup mechanism works...
authorMichael Foord <fuzzyman@voidspace.org.uk>
Sat, 20 Nov 2010 15:47:56 +0000 (15:47 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Sat, 20 Nov 2010 15:47:56 +0000 (15:47 +0000)
Lib/unittest/test/test_case.py

index 6aff90f1f1e1a2ab7f90a3143d13ed16fefebf72..18c74e91ce52ca2ee26b6075f28fc0c785f7d184 100644 (file)
@@ -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())