summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-01-15 00:21:46 (GMT)
committerGuido van Rossum <guido@python.org>2007-01-15 00:21:46 (GMT)
commitf4100005ae552ab4d5112b270a45c6091c30045e (patch)
tree43a119f36d88baaae6be94baee8b904210a7b238
parent4c9695a9d15661c526867e387967f5f3e82bed6f (diff)
downloadcpython-f4100005ae552ab4d5112b270a45c6091c30045e.zip
cpython-f4100005ae552ab4d5112b270a45c6091c30045e.tar.gz
cpython-f4100005ae552ab4d5112b270a45c6091c30045e.tar.bz2
Fix pickletools doctests -- all we get nowadays is longs.
(Hmm... Shouldn't longs of certain sizes be pickled using 'I' opcodes? Later.)
-rw-r--r--BROKEN_TESTS1
-rw-r--r--Lib/pickletools.py10
2 files changed, 5 insertions, 6 deletions
diff --git a/BROKEN_TESTS b/BROKEN_TESTS
index 4d513e6..58d5633 100644
--- a/BROKEN_TESTS
+++ b/BROKEN_TESTS
@@ -1,2 +1 @@
-test_pickletools -- Test probably needs to be fixed
test_sqlite -- CheckLargeInt (sqlite3.test.types.SqliteTypeTests, sqlite3.test.types.DeclTypesTests)
diff --git a/Lib/pickletools.py b/Lib/pickletools.py
index 941ca42..6757b59 100644
--- a/Lib/pickletools.py
+++ b/Lib/pickletools.py
@@ -2000,13 +2000,13 @@ _dis_test = r"""
0: ( MARK
1: l LIST (MARK at 0)
2: p PUT 0
- 5: I INT 1
+ 5: L LONG 1
8: a APPEND
- 9: I INT 2
+ 9: L LONG 2
12: a APPEND
13: ( MARK
- 14: I INT 3
- 17: I INT 4
+ 14: L LONG 3
+ 17: L LONG 4
20: t TUPLE (MARK at 13)
21: p PUT 1
24: a APPEND
@@ -2079,7 +2079,7 @@ highest protocol among opcodes = 0
93: p PUT 6
96: S STRING 'value'
105: p PUT 7
- 108: I INT 42
+ 108: L LONG 42
112: s SETITEM
113: b BUILD
114: a APPEND