cpython/Lib/test/infinite_reload.py

9 lines
324 B
Python
Raw Normal View History

# 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 imp
import infinite_reload
imp.reload(infinite_reload)