Skip to content

Commit 9203a8e

Browse files
review: update Lib/test/test_tokenize.py
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 876683f commit 9203a8e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Lib/test/test_tokenize.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3192,11 +3192,8 @@ def test_tstring_multiline_bang_underflow(self):
31923192
# gh-149183: t-string with '!' across two lines used to raise
31933193
# MemoryError because last_expr_end > last_expr_size produced a
31943194
# negative length that was cast to a huge size_t.
3195-
self.assertRaises(
3196-
tokenize.TokenError,
3197-
list,
3198-
tokenize.tokenize(BytesIO(b't"{!\n!x').readline),
3199-
)
3195+
readline = BytesIO(b't"{!\n!x').readline
3196+
self.assertRaises(tokenize.TokenError, list, tokenize.tokenize(readline))
32003197

32013198
@support.skip_wasi_stack_overflow()
32023199
def test_max_indent(self):

0 commit comments

Comments
 (0)