From 412a1a1278ec55630d9fe776e4ea7c1edfaceead Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Wed, 10 Jan 2007 12:30:05 +0000 Subject: rework test import code, rename test_vercmp to be more generic, add tests for =* glob matches svn path=/main/trunk/; revision=5522 --- tests/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/__init__.py') diff --git a/tests/__init__.py b/tests/__init__.py index 6acf0c99f..a32ca05d3 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -7,14 +7,15 @@ import unittest def main(): - tests = ["test_vercmp", "test_util"] + tests = ["test_atoms", "test_util"] suite = unittest.TestSuite() for mod in tests: try: - test_mod = __import__(mod) - suite.addTest(test_mod.suite()) + loadMod = __import__(mod) + tmpSuite = unittest.TestLoader().loadTestsFromModule(loadMod) + suite.addTest(tmpSuite) except ImportError: pass -- cgit v1.2.3-1-g7c22