Fix WML test runner crashing if none of the tests are expected to pass

This commit is contained in:
Celtic Minstrel 2021-02-27 16:53:49 -05:00
parent 2191911cc1
commit d74b8c3a52

View file

@ -183,7 +183,8 @@ def test_batcher(test_list):
expected_to_pass.append(test)
else:
yield [test]
yield expected_to_pass
if len(expected_to_pass) > 0:
yield expected_to_pass
if __name__ == '__main__':
ap = argparse.ArgumentParser()