Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7b03bade
Commit
7b03bade
authored
Feb 28, 2006
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test case to cover subscription bug from SF 1333982
parent
fb609f42
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
Lib/test/output/test_grammar
Lib/test/output/test_grammar
+1
-0
Lib/test/test_grammar.py
Lib/test/test_grammar.py
+11
-0
No files found.
Lib/test/output/test_grammar
View file @
7b03bade
...
...
@@ -55,6 +55,7 @@ multiplicative ops
unary ops
selectors
[1, (1,), (1, 2), (1, 2, 3)]
atoms
classdef
['Apple', 'Banana', 'Coco nut']
...
...
Lib/test/test_grammar.py
View file @
7b03bade
...
...
@@ -663,6 +663,17 @@ s = a[:]
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment