From 20a318cfbaf84e136c572ae10a293148de03374d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 14 Sep 2011 12:45:15 +0200 Subject: [PATCH] Report only first failure in scenario issue2147 --- tests/test_account_statement.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_account_statement.py b/tests/test_account_statement.py index 190bf5b94f..010a5cbe05 100644 --- a/tests/test_account_statement.py +++ b/tests/test_account_statement.py @@ -52,7 +52,8 @@ def suite(): suite.addTests(unittest.TestLoader().loadTestsFromTestCase( AccountStatementTestCase)) suite.addTests(doctest.DocFileSuite('scenario_account_statement.rst', - setUp=doctest_dropdb, tearDown=doctest_dropdb, encoding='utf-8')) + setUp=doctest_dropdb, tearDown=doctest_dropdb, encoding='utf-8', + optionflags=doctest.REPORT_ONLY_FIRST_FAILURE)) return suite if __name__ == '__main__':