mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix removal of invalid directories in import test
This commit is contained in:
parent
63f1996b5f
commit
50dd4952cb
@ -34,7 +34,7 @@ class TestImports(unittest.TestCase):
|
||||
import_base = os.path.dirname(base)
|
||||
count = 0
|
||||
for root, dirs, files in os.walk(base):
|
||||
for d in dirs:
|
||||
for d in tuple(dirs):
|
||||
if not os.path.isfile(os.path.join(root, d, '__init__.py')):
|
||||
dirs.remove(d)
|
||||
for fname in files:
|
||||
|
Loading…
x
Reference in New Issue
Block a user