Skip to content

Commit a52c90c

Browse files
committed
Fixed tests/runtests.py script w/ coverage
1 parent 8d5e4fc commit a52c90c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/runtests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ def main(short):
6464
if 'coverage' in sys.argv:
6565
def _new_check_call_closure(old_check_call):
6666
def _new_check_call(cmd, **kwargs):
67-
if cmd[0] != 'python':
67+
if not cmd[0].endswith('python'):
6868
cmd = ['coverage', 'run', '-a', '--source',
6969
'../django_mongodb_engine'] + cmd
7070
return old_check_call(cmd, **kwargs)
7171
return _new_check_call
72-
check_call = _new_check_call_closure(check_call)
72+
execute = _new_check_call_closure(execute)
7373
main('short' in sys.argv)

0 commit comments

Comments
 (0)