[Python-checkins] r86571 - python/branches/py3k/Lib/unittest/test/test_case.py

michael.foord python-checkins at python.org
Sat Nov 20 16:43:02 CET 2010


Author: michael.foord
Date: Sat Nov 20 16:43:02 2010
New Revision: 86571

Log:
Issue 10326: extend test for pickling of TestCase instances to ensure they can be unpickled too

Modified:
   python/branches/py3k/Lib/unittest/test/test_case.py

Modified: python/branches/py3k/Lib/unittest/test/test_case.py
==============================================================================
--- python/branches/py3k/Lib/unittest/test/test_case.py	(original)
+++ python/branches/py3k/Lib/unittest/test/test_case.py	Sat Nov 20 16:43:02 2010
@@ -1107,3 +1107,5 @@
 
             # blew up prior to fix
             pickled_test = pickle.dumps(test, protocol=protocol)
+            unpickled_test = pickle.loads(pickled_test)
+            self.assertEqual(test, unpickled_test)


More information about the Python-checkins mailing list