diff --git a/test/GrampsLogger/ErrorReportAssistant_Test.py b/test/GrampsLogger/ErrorReportAssistant_Test.py index 49c460e77..f1d1a07ad 100644 --- a/test/GrampsLogger/ErrorReportAssistant_Test.py +++ b/test/GrampsLogger/ErrorReportAssistant_Test.py @@ -27,24 +27,22 @@ class ErrorReportAssistantTest(TestCaseBase): def test_buffer_recall(self): """Test that simple recall of messages works.""" - + rh = RotateHandler(10) l = logging.getLogger("ErrorReportAssistantTest") l.setLevel(logging.DEBUG) - + l.addHandler(rh) l.info("info message") error_detail="Test error" - as = _ErrorReportAssistant.ErrorReportAssistant(error_detail=error_detail, + ass = _ErrorReportAssistant.ErrorReportAssistant(error_detail=error_detail, rotate_handler=rh) - assert as._error_detail == error_detail - + assert ass._error_detail == error_detail + l.removeHandler(rh) - - - + def testSuite(): suite = unittest.makeSuite(ErrorReportAssistantTest,'test') return suite