1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

PY3: wrap filter calls with list where list is expected

filter in PY2 returns list in PY3 it returns an iterator

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Noel Power 2018-08-03 18:45:35 +01:00 committed by Andrew Bartlett
parent dc9117e418
commit a0851c5fdc
2 changed files with 2 additions and 2 deletions

View File

@ -187,7 +187,7 @@ def plansmbtorture4testsuite(name, env, options, target, modname=None):
def smbtorture4_testsuites(prefix): def smbtorture4_testsuites(prefix):
return filter(lambda x: x.startswith(prefix), smbtorture4_testsuite_list) return list(filter(lambda x: x.startswith(prefix), smbtorture4_testsuite_list))
smbclient3 = binpath('smbclient') smbclient3 = binpath('smbclient')

View File

@ -323,7 +323,7 @@ smb2_s3only = [
smb2 = [x for x in smbtorture4_testsuites("smb2.") if x not in smb2_s3only] smb2 = [x for x in smbtorture4_testsuites("smb2.") if x not in smb2_s3only]
# The QFILEINFO-IPC test needs to be on ipc$ # The QFILEINFO-IPC test needs to be on ipc$
raw = filter(lambda x: "raw.qfileinfo.ipc" not in x, smbtorture4_testsuites("raw.")) raw = list(filter(lambda x: "raw.qfileinfo.ipc" not in x, smbtorture4_testsuites("raw.")))
base = smbtorture4_testsuites("base.") base = smbtorture4_testsuites("base.")
netapi = smbtorture4_testsuites("netapi.") netapi = smbtorture4_testsuites("netapi.")