8000 gh-105820: Fix tok_mode expression buffer in file & readline tokenizer by lysnikolaou · Pull Request #105828 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-105820: Fix tok_mode expression buffer in file & readline tokenizer #105828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 15, 2023
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()
0