Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_parser.py @ 70638:3ffd8dea77bf
only clear the parser error if it's set (closes #12264)
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sat, 04 Jun 2011 22:06:42 -0500 |
| parents | 3c9232a684ae |
| children | d64ac9ab4cd0 |
line wrap: on
line diff
--- a/Lib/test/test_parser.py Fri Jun 03 17:50:59 2011 -0500 +++ b/Lib/test/test_parser.py Sat Jun 04 22:06:42 2011 -0500 @@ -614,6 +614,13 @@ # XXX tests for pickling and unpickling of ST objects should go here +class OtherParserCase(unittest.TestCase): + + def test_two_args_to_expr(self): + # See bug #12264 + with self.assertRaises(TypeError): + parser.expr("a", "b") + def test_main(): support.run_unittest( @@ -622,6 +629,7 @@ CompileTestCase, ParserStackLimitTestCase, STObjectTestCase, + OtherParserCase, )
