infinite_reload.py 324 B

12345678
  1. # For testing http://python.org/sf/742342, which reports that Python
  2. # segfaults (infinite recursion in C) in the presence of infinite
  3. # reload()ing. This module is imported by test_import.py:test_infinite_reload
  4. # to make sure this doesn't happen any more.
  5. import imp
  6. import infinite_reload
  7. imp.reload(infinite_reload)