diff options
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') |