8000 Update test · python/cpython@47c50aa · GitHub
[go: up one dir, main page]

Skip to content

Commit 47c50aa

Browse files
committed
Update test
1 parent 31a83dc commit 47c50aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_fstring.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,8 @@ def test_mismatched_parens(self):
627627
r"does not match opening parenthesis '\('",
628628
["f'{a(4}'",
629629
])
630-
self.assertRaises(SyntaxError, eval, "f'{" + "("*500 + "}'")
630+
self.assertRaises(SyntaxError, eval, "f'{" + "("*100 + "}'")
631+
self.assertRaises(MemoryError, eval, "f'{" + "("*500 + "}'")
631632

632633
@unittest.skipIf(support.is_wasi, "exhausts limited stack on WASI")
633634
def test_fstring_nested_too_deeply(self):

0 commit comments

Comments
 (0)
0