Commit 2aff033d authored by Jérome Perrin's avatar Jérome Perrin

no need to use framework, and it adds undefined names.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26924 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c072521c
......@@ -27,9 +27,9 @@
#
##############################################################################
import os, sys
import unittest
import transaction
if __name__ == '__main__':
execfile(os.path.join(sys.path[0], 'framework.py'))
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager, \
......@@ -325,11 +325,7 @@ class TestTranslation(ERP5TypeTestCase):
translated_portal_type='Personne')])
transaction.abort()
if __name__ == '__main__':
framework()
else:
import unittest
def test_suite():
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestTranslation))
return suite
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