From eaf60c8a3f4c4a1a119545a615136c1fb0bef072 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 19 Feb 2015 15:09:06 +0100 Subject: Only use absolute import since searching both isn't supported in Python3. Since the tests are run from the toplevel dir we'll pick up the right scripts. --- tests/01_test_help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/01_test_help.py b/tests/01_test_help.py index 331d7cc..b0bb9a1 100644 --- a/tests/01_test_help.py +++ b/tests/01_test_help.py @@ -20,7 +20,7 @@ class TestHelp(unittest.TestCase): 'pull', 'pq']: module = 'gbp.scripts.%s' % script - m = __import__(module, globals(), locals(), ['main'], -1) + m = __import__(module, globals(), locals(), ['main'], 0) self.assertRaises(SystemExit, m.main, ['doesnotmatter', '--help']) @@ -29,7 +29,7 @@ class TestHelp(unittest.TestCase): def testHelpRpm(self): for script in ['import_srpm']: module = 'gbp.scripts.%s' % script - m = __import__(module, globals(), locals(), ['main'], -1) + m = __import__(module, globals(), locals(), ['main'], 0) self.assertRaises(SystemExit, m.main, ['doesnotmatter', '--help']) -- cgit v1.2.3