summaryrefslogtreecommitdiff
path: root/Lib/test/infinite_reload.py
diff options
context:
space:
mode:
authorCollin Winter <collinw@gmail.com>2007-03-12 16:11:39 +0000
committerCollin Winter <collinw@gmail.com>2007-03-12 16:11:39 +0000
commit276887b16dc86e3423760c6ed9353591708fba17 (patch)
tree04e9896ffc00c0291959b4be71a83273e790b4ad /Lib/test/infinite_reload.py
parentf567ca3e1ae851ea6e7418da3df47e034841a08d (diff)
downloadcpython-git-276887b16dc86e3423760c6ed9353591708fba17.tar.gz
Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167.
Will backport.
Diffstat (limited to 'Lib/test/infinite_reload.py')
-rw-r--r--Lib/test/infinite_reload.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/infinite_reload.py b/Lib/test/infinite_reload.py
new file mode 100644
index 0000000000..bfbec91b0a
--- /dev/null
+++ b/Lib/test/infinite_reload.py
@@ -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)