mirror of https://github.com/python/cpython.git
Issue 10326: further extend test for unpickling to ensure type lookup mechanism works after unpickling
This commit is contained in:
parent
8a00eec2a8
commit
b357fb7bed
|
@ -1109,3 +1109,7 @@ def testPickle(self):
|
|||
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())
|
||||
|
|
Loading…
Reference in New Issue