Skip to content

Commit

Permalink
LogPrinterTest: Close printer objects
Browse files Browse the repository at this point in the history
  • Loading branch information
sils committed Apr 8, 2015
1 parent bda9925 commit 46d0445
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions coalib/tests/output/printers/LogPrinterTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def test_interface(self):
self.assertRaises(NotImplementedError,
uut.log_message,
self.log_message)
uut.close()

def test_logging(self):
uut = TestLogPrinter(timestamp_format="")
Expand Down Expand Up @@ -74,11 +75,14 @@ def test_logging(self):
"[" + _("ERROR") + "][" + ts.strftime("%X") +
"] Something failed.\n\n" + _("Exception was:") + "\n"))

uut.close()

def test_raises(self):
uut = LogPrinter()
self.assertRaises(TypeError, uut.log, 5)
self.assertRaises(TypeError, uut.log_exception, "message", 5)
self.assertRaises(TypeError, uut.log_message, 5)
uut.close()


if __name__ == '__main__':
Expand Down

1 comment on commit 46d0445

@Makman2
Copy link
Member

@Makman2 Makman2 commented on 46d0445 Apr 8, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack

Please sign in to comment.