Commit 62785201 authored by Damien George's avatar Damien George
Browse files

tests: Add test for compile builtin.

parent c9fc6207
# test compile builtin
try:
compile
except NameError:
print("SKIP")
import sys
sys.exit()
c = compile("print(x)", "file", "exec")
try:
exec(c)
except NameError:
print("NameError")
x = 1
exec(c)
exec(c, {"x":2})
exec(c, {}, {"x":3})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment