Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Normalize newline in test_fstring to fix on Windows
  • Loading branch information
lysnikolaou committed Jun 15, 2023
commit a83de94f26a8f5efd053636aa9e2468649d40ef3
3 changes: 2 additions & 1 deletion Lib/test/test_fstring.py
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,8 @@ def test_debug_in_file(self):
=}}''')""")

_, stdout, _ = assert_python_ok(script)
self.assertEqual(stdout, b"\n3\n=3\n")
self.assertEqual(stdout.decode('utf-8').strip().replace('\r\n', '\n').replace('\r', '\n'),
"3\n=3")

if __name__ == '__main__':
unittest.main()