From c3a21f5ac9e90d291596742ff5d0d0e551e6e91e Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 20 Apr 2019 18:08:51 +0100 Subject: [PATCH] As a script, not as a module --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index c4a67a75070..5a9191c098b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -273,7 +273,7 @@ def _runtests(session, coverage, cmd_args): _create_ci_directories() try: if coverage is True: - _run_with_coverage(session, 'coverage', 'run', '-m', 'tests.runtests', *cmd_args) + _run_with_coverage(session, 'coverage', 'run', os.path.join('tests', 'runtests.py'), *cmd_args) else: session.run('python', os.path.join('tests', 'runtests.py'), *cmd_args) except CommandFailed: