diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-11-20 15:43:02 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-11-20 15:43:02 (GMT) |
commit | 8a00eec2a8896ab2cdccbf428ab9cb22a9c34302 (patch) | |
tree | 92b7ada071cf744e8f52050eabd25a8d121efde8 /Lib/unittest/test | |
parent | 8ca6d9884bcbdd05fe270e75e10f51af614e22a2 (diff) | |
download | cpython-8a00eec2a8896ab2cdccbf428ab9cb22a9c34302.zip cpython-8a00eec2a8896ab2cdccbf428ab9cb22a9c34302.tar.gz cpython-8a00eec2a8896ab2cdccbf428ab9cb22a9c34302.tar.bz2 |
Issue 10326: extend test for pickling of TestCase instances to ensure they can be unpickled too
Diffstat (limited to 'Lib/unittest/test')
-rw-r--r-- | Lib/unittest/test/test_case.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/unittest/test/test_case.py b/Lib/unittest/test/test_case.py index 444b58b..6aff90f 100644 --- a/Lib/unittest/test/test_case.py +++ b/Lib/unittest/test/test_case.py @@ -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) |