summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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'])