Skip to content

Commit

Permalink
Be more lenient with test_traceback
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Oct 28, 2024
1 parent bf56e7d commit 1ef8c7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -2011,7 +2011,8 @@ def test_random_files(self):
print('tokenize', testfile)
with open(testfile, 'rb') as f:
with self.subTest(file=testfile):
self.check_roundtrip(f)
compare_tokens_only = os.path.basename(testfile) == "test_traceback.py" # Ambiguous backslash continuation
self.check_roundtrip(f, compare_tokens_only=compare_tokens_only)
self.check_line_extraction(f)


Expand Down

0 comments on commit 1ef8c7a

Please sign in to comment.