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
6a4e3c5f
Commit
6a4e3c5f
authored
Jul 04, 2010
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Demo/parser/test_parser.py run.
parent
feb3b758
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Demo/parser/test_parser.py
Demo/parser/test_parser.py
+6
-6
No files found.
Demo/parser/test_parser.py
View file @
6a4e3c5f
...
...
@@ -11,19 +11,19 @@ def testChunk(t, fileName):
global
_numFailed
print
(
'----'
,
fileName
,
end
=
' '
)
try
:
a
st
=
parser
.
suite
(
t
)
tup
=
parser
.
ast2tuple
(
a
st
)
# this discards the first
A
ST; a huge memory savings when running
st
=
parser
.
suite
(
t
)
tup
=
parser
.
st2tuple
(
st
)
# this discards the first ST; a huge memory savings when running
# against a large source file like Tkinter.py.
a
st
=
None
new
=
parser
.
tuple2
a
st
(
tup
)
st
=
None
new
=
parser
.
tuple2st
(
tup
)
except
parser
.
ParserError
as
err
:
print
()
print
(
'parser module raised exception on input file'
,
fileName
+
':'
)
traceback
.
print_exc
()
_numFailed
=
_numFailed
+
1
else
:
if
tup
!=
parser
.
a
st2tuple
(
new
):
if
tup
!=
parser
.
st2tuple
(
new
):
print
()
print
(
'parser module failed on input file'
,
fileName
)
_numFailed
=
_numFailed
+
1
...
...
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