From a8cfb4f5ad50b825dbdaa542e41b2561c8b82cf5 Mon Sep 17 00:00:00 2001 From: Guillem Barba Date: Tue, 3 Jun 2014 16:21:35 +0200 Subject: [PATCH] Remove __main__ entry point and PATH manipulation in test --- tests/test_babi_reports_account_invoice.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/test_babi_reports_account_invoice.py b/tests/test_babi_reports_account_invoice.py index aaf7037..0131a5f 100644 --- a/tests/test_babi_reports_account_invoice.py +++ b/tests/test_babi_reports_account_invoice.py @@ -1,13 +1,6 @@ #!/usr/bin/env python # The COPYRIGHT file at the top level of this repository contains the full # copyright notices and license terms. -import sys -import os -DIR = os.path.abspath(os.path.normpath(os.path.join(__file__, - '..', '..', '..', '..', '..', 'trytond'))) -if os.path.isdir(DIR): - sys.path.insert(0, os.path.dirname(DIR)) - import unittest import trytond.tests.test_tryton from trytond.tests.test_tryton import test_depends @@ -33,6 +26,3 @@ def suite(): suite = trytond.tests.test_tryton.suite() suite.addTests(unittest.TestLoader().loadTestsFromTestCase(TestCase)) return suite - -if __name__ == '__main__': - unittest.TextTestRunner(verbosity=2).run(suite())