We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 876683f commit 9203a8eCopy full SHA for 9203a8e
1 file changed
Lib/test/test_tokenize.py
@@ -3192,11 +3192,8 @@ def test_tstring_multiline_bang_underflow(self):
3192
# gh-149183: t-string with '!' across two lines used to raise
3193
# MemoryError because last_expr_end > last_expr_size produced a
3194
# 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
- )
+ readline = BytesIO(b't"{!\n!x').readline
+ self.assertRaises(tokenize.TokenError, list, tokenize.tokenize(readline))
3200
3201
@support.skip_wasi_stack_overflow()
3202
def test_max_indent(self):
0 commit comments