Commit 79310359 authored by Denis Bilenko's avatar Denis Bilenko

util.py: fix UnboundLocalError

parent f369f011
......@@ -282,11 +282,12 @@ def report(total, failed, exit=True, took=None, expected=None):
else:
took = ''
failed_expected = []
failed_unexpected = []
if failed:
log('\n%s/%s tests failed%s', len(failed), total, took)
expected = set(expected or [])
failed_expected = []
failed_unexpected = []
for name in failed:
if matches(expected, name):
failed_expected.append(name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment