projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cac1c2
)
#17346: make sure pickle tests are run against all protocols.
author
Ezio Melotti
<ezio.melotti@gmail.com>
Mon, 4 Mar 2013 13:23:12 +0000
(15:23 +0200)
committer
Ezio Melotti
<ezio.melotti@gmail.com>
Mon, 4 Mar 2013 13:23:12 +0000
(15:23 +0200)
Lib/test/pickletester.py
patch
|
blob
|
history
diff --git
a/Lib/test/pickletester.py
b/Lib/test/pickletester.py
index f735e955a1da9e480feb375d1a863d91162925d1..3e7e11da4d4d20f66a66dda7a47adb6221a321f9 100644
(file)
--- a/
Lib/test/pickletester.py
+++ b/
Lib/test/pickletester.py
@@
-503,10
+503,10
@@
class AbstractPickleTests(unittest.TestCase):
i = C()
i.attr = i
for proto in protocols:
- s = self.dumps(i,
2
)
+ s = self.dumps(i,
proto
)
x = self.loads(s)
self.assertEqual(dir(x), dir(i))
- self.assert
True(x.attr is
x)
+ self.assert
Is(x.attr,
x)
def test_recursive_multi(self):
l = []