forked from pool/python-mutmut
Independent testing tool, with pytest plugin OBS-URL: https://build.opensuse.org/request/show/728151 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=1
24 lines
856 B
Diff
24 lines
856 B
Diff
From bd3866316949f8ba7162e0292be0776d6f51cf50 Mon Sep 17 00:00:00 2001
|
|
From: Maxime Lapointe <hunter_spawn@hotmail.com>
|
|
Date: Tue, 23 Jul 2019 08:55:15 -0400
|
|
Subject: [PATCH] Use sys.executable as default python executable
|
|
|
|
It's more likely to be the correct Python executable in case where someone specified the executable when running mutmut.
|
|
---
|
|
mutmut/__main__.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/mutmut/__main__.py b/mutmut/__main__.py
|
|
index 1f86048..d300a23 100644
|
|
--- a/mutmut/__main__.py
|
|
+++ b/mutmut/__main__.py
|
|
@@ -193,7 +193,7 @@ def print_progress(self):
|
|
@click.option('--post-mutation')
|
|
@config_from_setup_cfg(
|
|
dict_synonyms='',
|
|
- runner='python -m pytest -x',
|
|
+ runner='"' + sys.executable + '" -m pytest -x',
|
|
tests_dir=DEFAULT_TESTS_DIR,
|
|
pre_mutation=None,
|
|
post_mutation=None,
|