summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-11-20 15:47:56 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-11-20 15:47:56 (GMT)
commitb357fb7bed55be24eba936f7ef9a13e964da89dc (patch)
tree85dbd0d5ec33873a727a810d0cd60571cff02311
parent8a00eec2a8896ab2cdccbf428ab9cb22a9c34302 (diff)
downloadcpython-b357fb7bed55be24eba936f7ef9a13e964da89dc.zip
cpython-b357fb7bed55be24eba936f7ef9a13e964da89dc.tar.gz
cpython-b357fb7bed55be24eba936f7ef9a13e964da89dc.tar.bz2
Issue 10326: further extend test for unpickling to ensure type lookup mechanism works after unpickling
-rw-r--r--Lib/unittest/test/test_case.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/unittest/test/test_case.py b/Lib/unittest/test/test_case.py
index 6aff90f..18c74e9 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())