mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167.
Will backport.
This commit is contained in:
parent
f567ca3e1a
commit
276887b16d
7 changed files with 62 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