cpython: 389b7456a053 (original) (raw)

--- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -375,7 +375,7 @@ try: if len(fn)==2 and fn[1].startswith('init.py'): if fn[0] not in yielded: yielded[fn[0]] = 1

if len(fn)!=1: continue

--- a/Lib/test/test_pkgutil.py +++ b/Lib/test/test_pkgutil.py @@ -7,7 +7,6 @@ import pkgutil import os import os.path import tempfile -import types import shutil import zipfile @@ -101,6 +100,83 @@ class PkgutilTests(unittest.TestCase): for t in pkgutil.walk_packages(path=[self.dirname]): self.fail("unexpected package found")

+

+

+

+

+

+

+

+

+ + + class PkgutilPEP302Tests(unittest.TestCase): class MyTestLoader(object): @@ -324,11 +400,11 @@ class ImportlibMigrationTests(unittest.T def test_importer_deprecated(self): with self.check_deprecated():

def test_loader_deprecated(self): with self.check_deprecated():

def test_get_loader_avoids_emulation(self): with check_warnings() as w:

--- a/Misc/ACKS +++ b/Misc/ACKS @@ -1147,6 +1147,7 @@ Gavrie Philipson Adrian Phillips Dusty Phillips Christopher J. Phoenix +James Pickering Neale Pickett Jim St. Pierre Dan Pierson