Commit 017f9b39 authored by Yoshinori Okuji's avatar Yoshinori Okuji

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
parent 6b7d6815
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment