Skip to content

Commit e00d178

Browse files
author
Olli-Pekka Puolitaival
committed
Fix python3 compatibility issue
1 parent 35994c4 commit e00d178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mbed/mbed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2710,7 +2710,7 @@ def test_(toolchain=None, target=None, compile_list=False, run_list=False, compi
27102710
applications_to_add = proc.stdout.read()
27112711
# Filter right row in case that debugger print something there
27122712
if applications_to_add and 'TEST_APPS-' in applications_to_add:
2713-
applications_to_add = filter(lambda x: 'TEST_APPS-' in x, applications_to_add.split('\n'))[0]
2713+
applications_to_add = list(filter(lambda x: 'TEST_APPS-' in x, applications_to_add.split('\n')))[0]
27142714
if tests_by_name_temp:
27152715
tests_by_name_temp += ','
27162716
tests_by_name_temp += applications_to_add

0 commit comments

Comments
 (0)