We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e43f3b commit 378f03dCopy full SHA for 378f03d
Lib/test/test_ast.py
@@ -2566,7 +2566,7 @@ def test_subinterpreter(self):
2566
2567
2568
class ASTMainTests(unittest.TestCase):
2569
- """Tests `ast.main()` function."""
+ # Tests `ast.main()` function.
2570
2571
def test_cli_empty_input(self):
2572
expected = ast.dump(ast.parse(""))
@@ -2588,7 +2588,8 @@ def test_cli_file_input(self):
2588
res, _ = script_helper.run_python_until_end("-m", "ast", filename)
2589
2590
self.assertEqual(res.err, b"")
2591
- self.assertIn(expected, res.out.decode("utf8"))
+ self.assertEqual(expected.splitlines(),
2592
+ res.out.decode("utf8").splitlines())
2593
self.assertEqual(res.rc, 0)
2594
2595
0 commit comments