From 86ff352a8f1c6bb492b298ac8fe76700bea17b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Beraud?= Date: Wed, 16 Dec 2020 16:48:41 +0100 Subject: [PATCH] Fix the coverage run_python_file call With recent versions of coverage it seems that the execfile module of coverage have been refactored and here we pull the latest version which isn't compatible with our usages, especially when we call the `run_python_file` which now accept only one argument. These changes update our call. --- requirements.txt | 2 +- smiley/tracer.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0a111c7..8ea8003 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ cliff>=1.16.0 pyzmq>=14.3.1 -coverage>=3.7.1 +coverage>=5.3 pecan>=0.6.1 pygments>=1.6.0 gprof2dot>=1.0 diff --git a/smiley/tracer.py b/smiley/tracer.py index 0a91306..9a42f3b 100644 --- a/smiley/tracer.py +++ b/smiley/tracer.py @@ -253,8 +253,7 @@ def run(self, command_line): time.time(), ) run_python_file( - command_line[0], - command_line, + command_line ) except ExceptionDuringRun as err: # Unpack the wrapped exception