summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_peg_generator/test_c_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_peg_generator/test_c_parser.py')
-rw-r--r--Lib/test/test_peg_generator/test_c_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_peg_generator/test_c_parser.py b/Lib/test/test_peg_generator/test_c_parser.py
index 1095e73..aa01a9b 100644
--- a/Lib/test/test_peg_generator/test_c_parser.py
+++ b/Lib/test/test_peg_generator/test_c_parser.py
@@ -387,10 +387,10 @@ class TestCParser(unittest.TestCase):
test_source = """
stmt = "with (\\n a as b,\\n c as d\\n): pass"
the_ast = parse.parse_string(stmt, mode=1)
- self.assertTrue(ast_dump(the_ast).startswith(
+ self.assertStartsWith(ast_dump(the_ast),
"Module(body=[With(items=[withitem(context_expr=Name(id='a', ctx=Load()), optional_vars=Name(id='b', ctx=Store())), "
"withitem(context_expr=Name(id='c', ctx=Load()), optional_vars=Name(id='d', ctx=Store()))]"
- ))
+ )
"""
self.run_test(grammar_source, test_source)