diff options
| author | jvoisin | 2012-12-13 22:22:02 +0100 |
|---|---|---|
| committer | jvoisin | 2012-12-13 22:22:02 +0100 |
| commit | dae41c8e7d2cfce4e7f6a6a2bd27e0c018cd6a60 (patch) | |
| tree | 8292b39da20da1666b726b71928dd115dfeda1ca /test/test.py | |
| parent | d937b7e865490a80c2bff0ca161288f323313c1b (diff) | |
Improve style and pylint's note
Diffstat (limited to 'test/test.py')
| -rw-r--r-- | test/test.py | 15 |
1 files changed, 5 insertions, 10 deletions
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 | |||
| 14 | import tempfile | 14 | import tempfile |
| 15 | import unittest | 15 | import unittest |
| 16 | import subprocess | 16 | import subprocess |
| 17 | import sys | ||
| 18 | 17 | ||
| 19 | VERBOSITY = 3 | 18 | VERBOSITY = 3 |
| 20 | 19 | ||
| @@ -68,16 +67,12 @@ class MATTest(unittest.TestCase): | |||
| 68 | shutil.rmtree(self.tmpdir) | 67 | shutil.rmtree(self.tmpdir) |
| 69 | 68 | ||
| 70 | 69 | ||
| 71 | def main(): | 70 | if __name__ == '__main__': |
| 72 | import clitest | 71 | import clitest |
| 73 | import libtest | 72 | import libtest |
| 74 | 73 | ||
| 75 | suite = unittest.TestSuite() | 74 | SUITE = unittest.TestSuite() |
| 76 | suite.addTests(clitest.get_tests()) | 75 | SUITE.addTests(clitest.get_tests()) |
| 77 | suite.addTests(libtest.get_tests()) | 76 | SUITE.addTests(libtest.get_tests()) |
| 78 | |||
| 79 | unittest.TextTestRunner(verbosity=VERBOSITY).run(suite) | ||
| 80 | 77 | ||
| 81 | 78 | unittest.TextTestRunner(verbosity=VERBOSITY).run(SUITE) | |
| 82 | if __name__ == '__main__': | ||
| 83 | sys.exit(main()) | ||
