mirror of
https://github.com/python/cpython.git
synced 2025-08-19 00:00:48 +00:00
Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167.
Backported from r54291.
This commit is contained in:
parent
1817f096f4
commit
e19d7a3c0a
7 changed files with 64 additions and 2 deletions
7
Lib/test/infinite_reload.py
Normal file
7
Lib/test/infinite_reload.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
# For testing http://python.org/sf/742342, which reports that Python
|
||||
# segfaults (infinite recursion in C) in the presence of infinite
|
||||
# reload()ing. This module is imported by test_import.py:test_infinite_reload
|
||||
# to make sure this doesn't happen any more.
|
||||
|
||||
import infinite_reload
|
||||
reload(infinite_reload)
|
Loading…
Add table
Add a link
Reference in a new issue