mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -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)
|
import_base = os.path.dirname(base)
|
||||||
count = 0
|
count = 0
|
||||||
for root, dirs, files in os.walk(base):
|
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')):
|
if not os.path.isfile(os.path.join(root, d, '__init__.py')):
|
||||||
dirs.remove(d)
|
dirs.remove(d)
|
||||||
for fname in files:
|
for fname in files:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user