Make test/test_logging work on python 2.6

This commit is contained in:
Bruno Cauet 2015-01-04 17:14:34 +01:00
parent 408afa1b58
commit 52243269fc

View file

@ -34,5 +34,9 @@ class LoggingTest(TestCase):
self.assertTrue(stream.getvalue(), "foo oof baz")
def suite():
return unittest.TestLoader().loadTestsFromName(__name__)
if __name__ == '__main__':
unittest.main()
unittest.main(defaultTest='suite')