diff options
author | Raymond Hettinger <python@rcn.com> | 2004-07-06 13:44:41 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-07-06 13:44:41 (GMT) |
commit | 513ffe81122274973d2adeff13345589d4313d47 (patch) | |
tree | 321c72ea12517785553e6fbf224293e88ffda4a8 /Lib/test/test_builtin.py | |
parent | 2f55eb4ccad92efeb1d422c96aacd2cfa659c5c6 (diff) | |
download | cpython-513ffe81122274973d2adeff13345589d4313d47.zip cpython-513ffe81122274973d2adeff13345589d4313d47.tar.gz cpython-513ffe81122274973d2adeff13345589d4313d47.tar.bz2 |
* Fix missing return after error message is set.
* Add a test case that would have caught it.
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r-- | Lib/test/test_builtin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 8fea0ca..fdbbdfc 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -281,6 +281,7 @@ class BuiltinTest(unittest.TestCase): self.assertEqual(eval('dir()', g, m), list('xyz')) self.assertEqual(eval('globals()', g, m), g) self.assertEqual(eval('locals()', g, m), m) + self.assertRaises(TypeError, eval, 'a', m) # Verify that dict subclasses work as well class D(dict): |