waf: Fix ''NoneType' object is not iterable'

This commit is contained in:
Christian Mauderer 2016-11-06 23:25:24 +01:00 committed by Chris Johns
parent ee086511cf
commit b6272bbd56

View File

@ -126,10 +126,12 @@ def configure_tests(conf):
bld(features = 'tex', type = 'pdflatex', source = 'main.tex', prompt = 0) bld(features = 'tex', type = 'pdflatex', source = 'main.tex', prompt = 0)
tests = sorted(package_tests.keys()) tests = sorted(package_tests.keys())
excludes = [p[:p.rfind('.')] for p in local_packages()] local_packs = local_packages()
for e in excludes: if local_packs is not None:
if e in tests: excludes = [p[:p.rfind('.')] for p in local_packs]
tests.remove(e) for e in excludes:
if e in tests:
tests.remove(e)
fails = 0 fails = 0
for t in tests: for t in tests: