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
3445b482
Commit
3445b482
authored
Jul 04, 2010
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix symbol numbers in test_parser test.
parent
2cc8a5e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Lib/test/test_parser.py
Lib/test/test_parser.py
+8
-8
No files found.
Lib/test/test_parser.py
View file @
3445b482
...
...
@@ -471,18 +471,18 @@ class IllegalSyntaxTestCase(unittest.TestCase):
self
.
check_bad_tree
(
tree
,
"malformed global ast"
)
def
test_missing_import_source
(
self
):
# from import
a
# from import
fred
tree
=
\
(
257
,
(
26
7
,
(
26
8
,
(
2
69
,
(
28
1
,
(
28
3
,
(
1
,
'from'
),
(
1
,
'import'
),
(
28
6
,
(
284
,
(
1
,
'fred'
)))))),
(
26
8
,
(
26
9
,
(
2
70
,
(
28
2
,
(
28
4
,
(
1
,
'from'
),
(
1
,
'import'
),
(
28
7
,
(
285
,
(
1
,
'fred'
)))))),
(
4
,
''
))),
(
4
,
''
),
(
0
,
''
))
self
.
check_bad_tree
(
tree
,
"from import
a
"
)
self
.
check_bad_tree
(
tree
,
"from import
fred
"
)
class
CompileTestCase
(
unittest
.
TestCase
):
...
...
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