Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(52)

Unified Diff: Lib/test/pickletester.py

Issue 602: range: lean and mean (Closed) SVN Base: http://svn.python.org/view/*checkout*/python/branches/py3k/
Patch Set: __len__ is back! Created 4 months, 1 week ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: Lib/test/pickletester.py
===================================================================
--- Lib/test/pickletester.py (revision 62635)
+++ Lib/test/pickletester.py (working copy)
@@ -585,7 +585,7 @@
p = self.dumps(None, proto)
self.assertEqual(p, expected)
- oob = protocols[-1] + 1 # a future protocol
+ oob = list(protocols)[-1] + 1 # a future protocol
Alexandre Vassalotti 2008/05/03 07:12:01 The list() call should be moved to line 13, where
badpickle = pickle.PROTO + bytes([oob]) + build_none
try:
self.loads(badpickle)

Powered by Google App Engine
This is Rietveld r305