]> granicus.if.org Git - python/commitdiff
Add empty __init__.py files to the test packages so the new policy
authorGuido van Rossum <guido@python.org>
Fri, 31 Oct 1997 18:33:41 +0000 (18:33 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 31 Oct 1997 18:33:41 +0000 (18:33 +0000)
will recognize them.

Lib/test/test_pkg.py

index 0356cfa986e1991401b765b73530764fa7406011..dc5b567cd29dafdfdd9c91904832001bf31e6cdd 100644 (file)
@@ -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"),