projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44f0ea5
)
Shouldn't test short tuples with all items equal -- one potential bug
author
Guido van Rossum
<guido@python.org>
Tue, 28 Jan 2003 04:20:02 +0000
(
04:20
+0000)
committer
Guido van Rossum
<guido@python.org>
Tue, 28 Jan 2003 04:20:02 +0000
(
04:20
+0000)
would be that the tuple is reversed on unpickling, and we should catch
that. :-)
Goodnight -- that's it for toniht!
Lib/test/pickletester.py
patch
|
blob
|
history
diff --git
a/Lib/test/pickletester.py
b/Lib/test/pickletester.py
index e37a7b0174b8c1c6e863e55270f3dc5da25d1b5a..50e9aa4e5bb8b7debefeef0c819bdae812ae2227 100644
(file)
--- a/
Lib/test/pickletester.py
+++ b/
Lib/test/pickletester.py
@@
-283,10
+283,10
@@
class AbstractPickleTests(unittest.TestCase):
def test_short_tuples(self):
a = ()
- b = (1
2
,)
- c = (
6, 6
)
- d = (
4, 4, 4
)
- e = (
3, 3, 3, 3
)
+ b = (1,)
+ c = (
1, 2
)
+ d = (
1, 2, 3
)
+ e = (
1, 2, 3, 4
)
for proto in 0, 1, 2:
for x in a, b, c, d, e:
s = self.dumps(x, proto)