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
af09c774
Commit
af09c774
authored
Jul 29, 2014
by
Robert Jordens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21591: add test for qualified exec in tuple form.
parent
9b1d6703
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
Lib/test/test_compile.py
Lib/test/test_compile.py
+16
-0
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/test/test_compile.py
View file @
af09c774
...
...
@@ -90,6 +90,22 @@ class TestSpecifics(unittest.TestCase):
with
self
.
assertRaises
(
TypeError
):
exec
(
"a = b + 1"
,
g
,
l
)
in
g
,
l
def
test_nested_qualified_exec
(
self
):
# Can use qualified exec in nested functions.
code
=
[
"""
def g():
def f():
if True:
exec "" in {}, {}
"""
,
"""
def g():
def f():
if True:
exec("", {}, {})
"""
]
for
c
in
code
:
compile
(
c
,
"<code>"
,
"exec"
)
def
test_exec_with_general_mapping_for_locals
(
self
):
class
M
:
...
...
Misc/ACKS
View file @
af09c774
...
...
@@ -648,6 +648,7 @@ Richard Jones
Irmen de Jong
Lucas de Jonge
Kristján Valur Jónsson
Robert Jordens
Jens B. Jorgensen
John Jorgensen
Sijin Joseph
...
...
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