commit f9a8507ab282acd0d373e104ddd6ef8587780d07 Author: juga0 juga@riseup.net Date: Thu Jun 7 08:01:45 2018 +0000
Restore for else clause --- tests/unit/core/test_generate.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/tests/unit/core/test_generate.py b/tests/unit/core/test_generate.py index 7777308..e9b341c 100644 --- a/tests/unit/core/test_generate.py +++ b/tests/unit/core/test_generate.py @@ -86,11 +86,9 @@ def test_generate_single_error(dotsbws_error_result, caplog, parser): for record in caplog.records: if 'Keeping 0/1 read lines from {}'.format(dd) in record.getMessage(): break - else: - # FIXME: what was intended to be here? - assert None is None - # assert None, 'Unable to find log line indicating 0 success ' \ - # 'results in data file' + else: + assert None, 'Unable to find log line indicating 0 success ' \ + 'results in data file' assert 'No recent results' in caplog.records[-1].getMessage()
tor-commits@lists.torproject.org