Skip to content

Commit 378f03d

Browse files
committed
Fix Windows CI
1 parent 7e43f3b commit 378f03d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_ast.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2566,7 +2566,7 @@ def test_subinterpreter(self):
25662566

25672567

25682568
class ASTMainTests(unittest.TestCase):
2569-
"""Tests `ast.main()` function."""
2569+
# Tests `ast.main()` function.
25702570

25712571
def test_cli_empty_input(self):
25722572
expected = ast.dump(ast.parse(""))
@@ -2588,7 +2588,8 @@ def test_cli_file_input(self):
25882588
res, _ = script_helper.run_python_until_end("-m", "ast", filename)
25892589

25902590
self.assertEqual(res.err, b"")
2591-
self.assertIn(expected, res.out.decode("utf8"))
2591+
self.assertEqual(expected.splitlines(),
2592+
res.out.decode("utf8").splitlines())
25922593
self.assertEqual(res.rc, 0)
25932594

25942595

0 commit comments

Comments
 (0)