diff options
author | Guido van Rossum <guido@python.org> | 1993-10-22 14:24:22 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-10-22 14:24:22 (GMT) |
commit | b3b09c97ce0b40a282553b0366addc879a115eb4 (patch) | |
tree | 2645072ddae2aadfab339dcc6578de459bda6ddc /Lib/test/test_b1.py | |
parent | b37954f91771735e8595918f6e43f46438db7397 (diff) | |
download | cpython-b3b09c97ce0b40a282553b0366addc879a115eb4.zip cpython-b3b09c97ce0b40a282553b0366addc879a115eb4.tar.gz cpython-b3b09c97ce0b40a282553b0366addc879a115eb4.tar.bz2 |
added builtin b/w compat module.
changed testing of exec.
Diffstat (limited to 'Lib/test/test_b1.py')
-rw-r--r-- | Lib/test/test_b1.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py index e5611e5..c258fd7 100644 --- a/Lib/test/test_b1.py +++ b/Lib/test/test_b1.py @@ -25,7 +25,7 @@ def f2(a1, a2): raise TestFailed, 'f2 called with ' + `a1, a2` def f3(a1, a2, a3): if a1 != 1 or a2 != 2 or a3 != 3: - raise TestFailed, 'f2 called with ' + `a1, a2, a3` + raise TestFailed, 'f3 called with ' + `a1, a2, a3` apply(f0, ()) apply(f1, (1,)) apply(f2, (1, 2)) @@ -81,14 +81,6 @@ print 'eval' if eval('1+1') <> 2: raise TestFailed, 'eval(\'1+1\')' if eval(' 1+1\n') <> 2: raise TestFailed, 'eval(\' 1+1\\n\')' -print 'exec' -z = 0 -exec('z=1+1\n') -if z <> 2: raise TestFailed, 'exec(\'z=1+1\'\\n)' -z = 0 -exec('z=1+1') -if z <> 2: raise TestFailed, 'exec(\'z=1+1\')' - print 'execfile' z = 0 f = open(TESTFN, 'w') |