summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-02-19 15:09:06 +0100
committerGuido Günther <agx@sigxcpu.org>2015-02-20 16:14:41 +0100
commiteaf60c8a3f4c4a1a119545a615136c1fb0bef072 (patch)
tree11ca6f4bcd00e20578e36adab86249ba65560cd6
parentdf4cdd780b279caba38e7267be57ed4182237921 (diff)
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.
-rw-r--r--tests/01_test_help.py4
1 files 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'])