From dae41c8e7d2cfce4e7f6a6a2bd27e0c018cd6a60 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 13 Dec 2012 22:22:02 +0100 Subject: Improve style and pylint's note --- test/test.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'test/test.py') diff --git a/test/test.py b/test/test.py index cbee609..675c4f9 100644 --- a/test/test.py +++ b/test/test.py @@ -14,7 +14,6 @@ import glob import tempfile import unittest import subprocess -import sys VERBOSITY = 3 @@ -68,16 +67,12 @@ class MATTest(unittest.TestCase): shutil.rmtree(self.tmpdir) -def main(): +if __name__ == '__main__': import clitest import libtest - suite = unittest.TestSuite() - suite.addTests(clitest.get_tests()) - suite.addTests(libtest.get_tests()) - - unittest.TextTestRunner(verbosity=VERBOSITY).run(suite) + SUITE = unittest.TestSuite() + SUITE.addTests(clitest.get_tests()) + SUITE.addTests(libtest.get_tests()) - -if __name__ == '__main__': - sys.exit(main()) + unittest.TextTestRunner(verbosity=VERBOSITY).run(SUITE) -- cgit v1.3