]> granicus.if.org Git - python/commitdiff
Issue 10326: extend test for pickling of TestCase instances to ensure they can be...
authorMichael Foord <fuzzyman@voidspace.org.uk>
Sat, 20 Nov 2010 15:43:02 +0000 (15:43 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Sat, 20 Nov 2010 15:43:02 +0000 (15:43 +0000)
Lib/unittest/test/test_case.py

index 444b58be062a6413b161918de6bb18b0aa03f9fe..6aff90f1f1e1a2ab7f90a3143d13ed16fefebf72 100644 (file)
@@ -1107,3 +1107,5 @@ test case
 
             # blew up prior to fix
             pickled_test = pickle.dumps(test, protocol=protocol)
+            unpickled_test = pickle.loads(pickled_test)
+            self.assertEqual(test, unpickled_test)