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:
parent
dc9117e418
commit
a0851c5fdc
@ -187,7 +187,7 @@ def plansmbtorture4testsuite(name, env, options, target, modname=None):
|
||||
|
||||
|
||||
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')
|
||||
|
@ -323,7 +323,7 @@ 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$
|
||||
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.")
|
||||
|
||||
netapi = smbtorture4_testsuites("netapi.")
|
||||
|
Loading…
Reference in New Issue
Block a user