diff options
author | Michael Foord <michael@voidspace.org.uk> | 2012-03-12 13:54:03 -0700 |
---|---|---|
committer | Michael Foord <michael@voidspace.org.uk> | 2012-03-12 13:54:03 -0700 |
commit | c1f5d8af57f2cabb2eb19f84d6fab2fbdd86293b (patch) | |
tree | f39f5fef0b05d95375303417369a4f708a139f53 /Lib/test/pickletester.py | |
parent | 5f99ced092b01401d9e1637c493fa61d948101fe (diff) | |
parent | 17591c1a1d0a6ba20f3b68e2c438d9b9baabc6c9 (diff) | |
download | cpython-git-c1f5d8af57f2cabb2eb19f84d6fab2fbdd86293b.tar.gz |
Merge
Diffstat (limited to 'Lib/test/pickletester.py')
-rw-r--r-- | Lib/test/pickletester.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 1a551c8bde..3686a62c66 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -743,6 +743,18 @@ class AbstractPickleTests(unittest.TestCase): u = self.loads(s) self.assertEqual(t, u) + def test_ellipsis(self): + for proto in protocols: + s = self.dumps(..., proto) + u = self.loads(s) + self.assertEqual(..., u) + + def test_notimplemented(self): + for proto in protocols: + s = self.dumps(NotImplemented, proto) + u = self.loads(s) + self.assertEqual(NotImplemented, u) + # Tests for protocol 2 def test_proto(self): |