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
0bcba372
Commit
0bcba372
authored
Jan 04, 2018
by
Serhiy Storchaka
Committed by
GitHub
Jan 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-32482: Improve syntax and grammar tests. (#5085)
parent
eb08a929
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
397 additions
and
177 deletions
+397
-177
Lib/test/test_grammar.py
Lib/test/test_grammar.py
+140
-82
Lib/test/test_syntax.py
Lib/test/test_syntax.py
+253
-91
Lib/test/test_sys_settrace.py
Lib/test/test_sys_settrace.py
+4
-4
No files found.
Lib/test/test_grammar.py
View file @
0bcba372
This diff is collapsed.
Click to expand it.
Lib/test/test_syntax.py
View file @
0bcba372
This diff is collapsed.
Click to expand it.
Lib/test/test_sys_settrace.py
View file @
0bcba372
...
@@ -619,7 +619,7 @@ class JumpTestCase(unittest.TestCase):
...
@@ -619,7 +619,7 @@ class JumpTestCase(unittest.TestCase):
def
test_jump_in_nested_finally_2
(
output
):
def
test_jump_in_nested_finally_2
(
output
):
try
:
try
:
output
.
append
(
2
)
output
.
append
(
2
)
1
/
0
1
.0
/
0.
0
return
return
finally
:
finally
:
output
.
append
(
6
)
output
.
append
(
6
)
...
@@ -630,7 +630,7 @@ class JumpTestCase(unittest.TestCase):
...
@@ -630,7 +630,7 @@ class JumpTestCase(unittest.TestCase):
def
test_jump_in_nested_finally_3
(
output
):
def
test_jump_in_nested_finally_3
(
output
):
try
:
try
:
output
.
append
(
2
)
output
.
append
(
2
)
1
/
0
1
.0
/
0.
0
return
return
finally
:
finally
:
output
.
append
(
6
)
output
.
append
(
6
)
...
@@ -697,7 +697,7 @@ class JumpTestCase(unittest.TestCase):
...
@@ -697,7 +697,7 @@ class JumpTestCase(unittest.TestCase):
@
jump_test
(
5
,
7
,
[
4
,
7
,
8
])
@
jump_test
(
5
,
7
,
[
4
,
7
,
8
])
def
test_jump_between_except_blocks
(
output
):
def
test_jump_between_except_blocks
(
output
):
try
:
try
:
1
/
0
1
.0
/
0.
0
except
ZeroDivisionError
:
except
ZeroDivisionError
:
output
.
append
(
4
)
output
.
append
(
4
)
output
.
append
(
5
)
output
.
append
(
5
)
...
@@ -708,7 +708,7 @@ class JumpTestCase(unittest.TestCase):
...
@@ -708,7 +708,7 @@ class JumpTestCase(unittest.TestCase):
@
jump_test
(
5
,
6
,
[
4
,
6
,
7
])
@
jump_test
(
5
,
6
,
[
4
,
6
,
7
])
def
test_jump_within_except_block
(
output
):
def
test_jump_within_except_block
(
output
):
try
:
try
:
1
/
0
1
.0
/
0.
0
except
:
except
:
output
.
append
(
4
)
output
.
append
(
4
)
output
.
append
(
5
)
output
.
append
(
5
)
...
...
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