Skip to content

Commit 3382583

Browse files
committed
tests: Replace 'scriptimports' with a much simpler method
1 parent dfe22d6 commit 3382583

4 files changed

Lines changed: 2 additions & 3 deletions

File tree

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ def run(self):
147147

148148
os.system("pep8 --format=pylint "
149149
"bugzilla/ bin/bugzilla tests/ "
150-
"--exclude scriptimports "
151150
# E303: Too many blank lines
152151
# E125: Continuation indent isn't different from next block
153152
# E128: Not indented for visual style

tests/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def clicomm(argv, bzinstance, returnmain=False, printcliout=False,
3131
"""
3232
Run bin/bugzilla.main() directly with passed argv
3333
"""
34-
from tests.scriptimports import bugzillascript
34+
import imp
35+
bugzillascript = imp.load_source("bugzillascript", "bin/bugzilla")
3536

3637
argv = shlex.split(argv)
3738

tests/scriptimports/__init__.py

Whitespace-only changes.

tests/scriptimports/bugzillascript.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)