Skip to content

Commit b27da33

Browse files
Remove test
1 parent 8808550 commit b27da33

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

Lib/test/test_syntax.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,7 +2691,6 @@ def f(x: *b)
26912691
import unittest
26922692

26932693
from test import support
2694-
from test.support.script_helper import assert_python_ok
26952694

26962695
class SyntaxWarningTest(unittest.TestCase):
26972696
def check_warning(self, code, errtext, filename="<testcase>", mode="exec"):
@@ -3025,22 +3024,6 @@ class A:
30253024
class B[{name}]: pass
30263025
""", "<testcase>", mode="exec")
30273026

3028-
@support.nomemtest
3029-
def test_disallowed_type_param_names_oom(self):
3030-
# gh-152682: Don't crash on OOM when formatting the SyntaxError message
3031-
# in symtable_visit_type_param_bound_or_default.
3032-
code = textwrap.dedent("""\
3033-
import _testcapi
3034-
_testcapi.set_nomemory(0)
3035-
try:
3036-
compile("class A[__classdict__]: pass", "<string>", "exec")
3037-
except MemoryError:
3038-
pass
3039-
else:
3040-
raise RuntimeError('MemoryError not raised')
3041-
""")
3042-
assert_python_ok("-c", code)
3043-
30443027
@support.cpython_only
30453028
def test_nested_named_except_blocks(self):
30463029
code = ""

0 commit comments

Comments
 (0)