Skip to content

Commit 975335b

Browse files
committed
python3: convert map object to a list
In Python 2.x map() returns a list and in Python 3.x map() returns an iterable object. To make code compatible with both versions map() wrapped by list(). Part of #20
1 parent 4a99b2d commit 975335b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/app_server.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ def is_correct(run):
245245

246246
test_names = sorted(glob.glob(os.path.join(suite_path, "*.test.lua")))
247247
test_names = Server.exclude_tests(test_names, test_suite.args.exclude)
248-
test_names = sum(map((lambda x: patterned(x, test_suite.args.tests)),
249-
test_names), [])
248+
test_names = sum(list(map((lambda x: patterned(x, test_suite.args.tests)),
249+
test_names)), [])
250250
tests = []
251251

252252
for test_name in test_names:

0 commit comments

Comments
 (0)