From 017f9b39f18852e895469955ec23d0f939a8b93e Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Tue, 11 Oct 2005 13:12:47 +0000 Subject: [PATCH] Remove .py from the name of each test, if any. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3991 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/runUnitTest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py index bb17d63014e..3f3580ac192 100755 --- a/product/ERP5Type/tests/runUnitTest.py +++ b/product/ERP5Type/tests/runUnitTest.py @@ -44,6 +44,8 @@ def runUnitTestList(test_list) : sys.path += product_test_list for test in test_list: + if test.endswith('.py'): + test = test[:-3] m = __import__(test) for attr_name in dir(m) : attr = getattr(m, attr_name) -- 2.30.9