Commit 76e73330 authored by Kevin Modzelewski's avatar Kevin Modzelewski

These are working now

parent 092351e9
# expected: reffail
# co is compiled without the __future__ division import.
# So even though the import is present in the exec statements,
# the code will be evaluated without it. Each should print 0.
......
# expected: reffail
print eval("3 + 4")
a = 5
......
# expected: reffail
exec """print 'hi'
a = 5
print a"""
......
# expected: reffail
print 1 / 2
exec """
......
# expected: reffail
from __future__ import division
print 1 / 2
......
# expected: reffail
# I would have expected this to be valid, but cPython and pypy err out saying "name 'x' is local and global"
try:
......
# expected: reffail
# We could just have a file for each, but if we Do these in execs,
# we don't need separate files for each, and that makes it easier
# to just spam all the permutations.
......
Markdown is supported
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