summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-31 18:33:41 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-31 18:33:41 (GMT)
commite8d113976c332448ab5d4849f0c002b416c4bda5 (patch)
treeb01946393776f245602e9d16a47291e5ad519402 /Lib/test
parent873c35c437566ec138545f716ee1a10a22708026 (diff)
downloadcpython-e8d113976c332448ab5d4849f0c002b416c4bda5.zip
cpython-e8d113976c332448ab5d4849f0c002b416c4bda5.tar.gz
cpython-e8d113976c332448ab5d4849f0c002b416c4bda5.tar.bz2
Add empty __init__.py files to the test packages so the new policy
will recognize them.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_pkg.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_pkg.py b/Lib/test/test_pkg.py
index 0356cfa..dc5b567 100644
--- a/Lib/test/test_pkg.py
+++ b/Lib/test/test_pkg.py
@@ -70,12 +70,13 @@ def runtest(hier, code):
# Test descriptions
tests = [
- ("t1", [("t1", None)], "import t1"),
+ ("t1", [("t1", None), ("t1 __init__.py", "")], "import t1"),
("t2", [
("t2", None),
("t2 __init__.py", "'doc for t2'; print __name__, 'loading'"),
("t2 sub", None),
+ ("t2 sub __init__.py", ""),
("t2 sub subsub", None),
("t2 sub subsub __init__.py", "print __name__, 'loading'; spam = 1"),
],
@@ -105,6 +106,7 @@ print dir()
("t3", None),
("t3 __init__.py", "print __name__, 'loading'"),
("t3 sub", None),
+ ("t3 sub __init__.py", ""),
("t3 sub subsub", None),
("t3 sub subsub __init__.py", "print __name__, 'loading'; spam = 1"),
],
@@ -122,6 +124,7 @@ reload(t3.sub.subsub)
("t4 __init__.py", "print __name__, 'loading'"),
("t4 sub.py", "print 'THIS SHOULD NOT BE PRINTED (sub.py)'"),
("t4 sub", None),
+ ("t4 sub __init__.py", ""),
("t4 sub subsub.py", "print 'THIS SHOULD NOT BE PRINTED (subsub.py)'"),
("t4 sub subsub", None),
("t4 sub subsub __init__.py", "print __name__, 'loading'; spam = 1"),