Skip to content

Commit 93ecff0

Browse files
committed
Using indermediate variable in list comprehension.
Makes the statement easier to read.
1 parent 0a4c628 commit 93ecff0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/compile_tester/test_compile_tester_projects.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ def test_compile_local_files(self, tester_login):
3131
(stored locally in test_data/cb_compile_tester), compile them,
3232
and finally delete them."""
3333
filenames = next(os.walk(COMPILE_TESTER_DIR))[2]
34-
test_files = [os.path.join(COMPILE_TESTER_DIR, name) for name
35-
in next(os.walk(COMPILE_TESTER_DIR))[2]]
34+
test_files = [os.path.join(COMPILE_TESTER_DIR, name) for name in filenames]
3635
projects = [self.upload_project('#uploadFolderZip form', fname,
3736
os.path.splitext(os.path.basename(fname))[0]) for fname
3837
in test_files]

0 commit comments

Comments
 (0)