Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
undo changes to test_compile
  • Loading branch information
Paul Monson committed Aug 8, 2019
commit 2ba79822b07c0c147e67062cd0717a951c257432
5 changes: 1 addition & 4 deletions Lib/test/test_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,7 @@ def test_path_like_objects(self):
def test_stack_overflow(self):
# bpo-31113: Stack overflow when compile a long sequence of
# complex statements.
try:
compile("if a: b\n" * 200000, "<dummy>", "exec")
except MemoryError:
pass
compile("if a: b\n" * 200000, "<dummy>", "exec")

# Multiple users rely on the fact that CPython does not generate
# bytecode for dead code blocks. See bpo-37500 for more context.
Expand Down