From cf29bb2aa9ae4017882982a8a28cc69cf874aedd Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Wed, 23 Aug 2000 21:11:05 +0000 Subject: style nits --- Lib/test/test_b1.py | 12 ++++++++---- 1 file 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 -- cgit v0.12