summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-09-06 19:58:53 (GMT)
committerGuido van Rossum <guido@python.org>1997-09-06 19:58:53 (GMT)
commit81da02e6aa7b3400ef06b76c6329cc0cd0216414 (patch)
tree3d449246bdef70a53f151ff6172bfbbcb6ba8265 /Lib/test
parent222ef56bbf30cd1435dffb61f3c41b3a93cda9d3 (diff)
downloadcpython-81da02e6aa7b3400ef06b76c6329cc0cd0216414.zip
cpython-81da02e6aa7b3400ef06b76c6329cc0cd0216414.tar.gz
cpython-81da02e6aa7b3400ef06b76c6329cc0cd0216414.tar.bz2
Added feeble test for reload() of packages and submodules.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/output/test_pkg2
-rw-r--r--Lib/test/test_pkg.py3
2 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/output/test_pkg b/Lib/test/output/test_pkg
index 19ac6f2..b1033c1 100644
--- a/Lib/test/output/test_pkg
+++ b/Lib/test/output/test_pkg
@@ -15,6 +15,8 @@ running test t3
t3 loading
t3.sub.subsub loading
t3 t3.sub t3.sub.subsub
+t3 loading
+t3.sub.subsub loading
running test t4
t4 loading
t4.sub.subsub loading
diff --git a/Lib/test/test_pkg.py b/Lib/test/test_pkg.py
index 3210500..9c8e44e 100644
--- a/Lib/test/test_pkg.py
+++ b/Lib/test/test_pkg.py
@@ -112,6 +112,9 @@ print dir()
"""
import t3.sub.subsub
print t3.__name__, t3.sub.__name__, t3.sub.subsub.__name__
+reload(t3)
+reload(t3.sub)
+reload(t3.sub.subsub)
"""),
("t4", [