diff options
author | Guido van Rossum <guido@python.org> | 1997-10-31 18:33:41 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-31 18:33:41 (GMT) |
commit | e8d113976c332448ab5d4849f0c002b416c4bda5 (patch) | |
tree | b01946393776f245602e9d16a47291e5ad519402 /Lib | |
parent | 873c35c437566ec138545f716ee1a10a22708026 (diff) | |
download | cpython-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')
-rw-r--r-- | Lib/test/test_pkg.py | 5 |
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"), |