[Python-checkins] r42653 - in python/trunk/Lib/test: output/test_grammar test_grammar.py
jeremy.hylton
python-checkins at python.org
Tue Feb 28 18:46:27 CET 2006
Author: jeremy.hylton
Date: Tue Feb 28 18:46:23 2006
New Revision: 42653
Modified:
python/trunk/Lib/test/output/test_grammar
python/trunk/Lib/test/test_grammar.py
Log:
Test case to cover subscription bug from SF 1333982
Modified: python/trunk/Lib/test/output/test_grammar
==============================================================================
--- python/trunk/Lib/test/output/test_grammar (original)
+++ python/trunk/Lib/test/output/test_grammar Tue Feb 28 18:46:23 2006
@@ -55,6 +55,7 @@
unary ops
selectors
+[1, (1,), (1, 2), (1, 2, 3)]
atoms
classdef
['Apple', 'Banana', 'Coco nut']
Modified: python/trunk/Lib/test/test_grammar.py
==============================================================================
--- python/trunk/Lib/test/test_grammar.py (original)
+++ python/trunk/Lib/test/test_grammar.py Tue Feb 28 18:46:23 2006
@@ -663,6 +663,17 @@
s = a[-5:]
s = a[:-1]
s = a[-4:-3]
+# A rough test of SF bug XXX.
+# The testing here is fairly incomplete.
+d = {}
+d[1] = 1
+d[1,] = 2
+d[1,2] = 3
+d[1,2,3] = 4
+L = list(d)
+L.sort()
+print L
+
print 'atoms'
### atom: '(' [testlist] ')' | '[' [testlist] ']' | '{' [dictmaker] '}' | '`' testlist '`' | NAME | NUMBER | STRING
More information about the Python-checkins
mailing list