mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
OK, this is really the last one tonight!
NEWFALSE and NEWTRUE.
This commit is contained in:
parent
025bc2fe6c
commit
7d97d31a1b
2 changed files with 19 additions and 1 deletions
|
@ -293,6 +293,13 @@ class AbstractPickleTests(unittest.TestCase):
|
|||
y = self.loads(s)
|
||||
self.assertEqual(x, y, (proto, x, s, y))
|
||||
|
||||
def test_singletons(self):
|
||||
for proto in 0, 1, 2:
|
||||
for x in None, False, True:
|
||||
s = self.dumps(x, proto)
|
||||
y = self.loads(s)
|
||||
self.assert_(x is y, (proto, x, s, y))
|
||||
|
||||
class AbstractPickleModuleTests(unittest.TestCase):
|
||||
|
||||
def test_dump_closed_file(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue