mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
only clear the parser error if it's set (closes #12264)
This commit is contained in:
parent
4dfcb1a00d
commit
f719957d7a
2 changed files with 11 additions and 2 deletions
|
@ -614,6 +614,13 @@ class STObjectTestCase(unittest.TestCase):
|
|||
|
||||
# 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 @@ def test_main():
|
|||
CompileTestCase,
|
||||
ParserStackLimitTestCase,
|
||||
STObjectTestCase,
|
||||
OtherParserCase,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue