diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-08-23 21:11:05 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-08-23 21:11:05 (GMT) |
commit | cf29bb2aa9ae4017882982a8a28cc69cf874aedd (patch) | |
tree | 7cfdfe22ffc90e0f529db0392db355e26d44afa1 /Lib | |
parent | 27c4b39025eb9e20f9d7a36b6aa0bb9c97f9bba5 (diff) | |
download | cpython-cf29bb2aa9ae4017882982a8a28cc69cf874aedd.zip cpython-cf29bb2aa9ae4017882982a8a28cc69cf874aedd.tar.gz cpython-cf29bb2aa9ae4017882982a8a28cc69cf874aedd.tar.bz2 |
style nits
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_b1.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py index d735bfa..d9bc04d 100644 --- a/Lib/test/test_b1.py +++ b/Lib/test/test_b1.py @@ -153,10 +153,14 @@ if eval('1+1') <> 2: raise TestFailed, 'eval(\'1+1\')' if eval(' 1+1\n') <> 2: raise TestFailed, 'eval(\' 1+1\\n\')' globals = {'a': 1, 'b': 2} locals = {'b': 200, 'c': 300} -if eval('a', globals) <> 1: raise TestFailed, "eval(1)" -if eval('a', globals, locals) <> 1: raise TestFailed, "eval(2)" -if eval('b', globals, locals) <> 200: raise TestFailed, "eval(3)" -if eval('c', globals, locals) <> 300: raise TestFailed, "eval(4)" +if eval('a', globals) <> 1: + raise TestFailed, "eval(1) == %s" % eval('a', globals) +if eval('a', globals, locals) <> 1: + raise TestFailed, "eval(2)" +if eval('b', globals, locals) <> 200: + raise TestFailed, "eval(3)" +if eval('c', globals, locals) <> 300: + raise TestFailed, "eval(4)" print 'execfile' z = 0 |