Skip to content

Commit 501c568

Browse files
committed
Fix for Python 2
1 parent c55bdf7 commit 501c568

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/filetools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,7 @@ def test_index_functions(self):
24702470
# load_index just returns None if there is no index in specified directory
24712471
self.assertEqual(ft.load_index(self.test_prefix), None)
24722472

2473-
num_files = len(glob.glob(test_ecs + '/**/*.*', recursive=True))
2473+
num_files = sum(len(files) for _, _, files in os.walk(test_ecs))
24742474

24752475
# create index for test easyconfigs;
24762476
# test with specified path with and without trailing '/'s

0 commit comments

Comments
 (0)