diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2022-01-03 18:29:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-03 18:29:18 (GMT) |
commit | 9d35dedc5e7e940b639230fba93c763bd9f19c09 (patch) | |
tree | ef78245f7f08d1012db04413feb61ba36c7c92b5 /Lib/test/test_syntax.py | |
parent | c960b191b8999a9455bb4b2c50dc224d06fee80c (diff) | |
download | cpython-9d35dedc5e7e940b639230fba93c763bd9f19c09.zip cpython-9d35dedc5e7e940b639230fba93c763bd9f19c09.tar.gz cpython-9d35dedc5e7e940b639230fba93c763bd9f19c09.tar.bz2 |
Revert "bpo-46110: Add a recursion check to avoid stack overflow in the PEG parser (GH-30177)" (GH-30363)
This reverts commit e9898bf153d26059261ffef11f7643ae991e2a4c temporarily as we want to confirm if this commit is the cause of a slowdown at startup time.
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index c95bc15..6286529 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -1729,14 +1729,6 @@ while 1: """ self._check_error(source, "too many statically nested blocks") - @support.cpython_only - def test_error_on_parser_stack_overflow(self): - source = "-" * 100000 + "4" - for mode in ["exec", "eval", "single"]: - with self.subTest(mode=mode): - with self.assertRaises(MemoryError): - compile(source, "<string>", mode) - def load_tests(loader, tests, pattern): tests.addTest(doctest.DocTestSuite()) |