forked from pool/python-mutmut
bed5e7ccf2
* Various minor fixes around in the package - Remove merged patches pr_148.patch merged_4405bafe.patch - Rebase patch pr_134.patch - Add patch no-direct-python-call.patch to avoid direct calls to python binary OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutmut?expand=0&rev=3
24 lines
894 B
Diff
24 lines
894 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(-)
|
|
|
|
Index: mutmut-1.6.0/mutmut/__main__.py
|
|
===================================================================
|
|
--- mutmut-1.6.0.orig/mutmut/__main__.py
|
|
+++ mutmut-1.6.0/mutmut/__main__.py
|
|
@@ -193,7 +193,7 @@ class Progress(object):
|
|
@config_from_setup_cfg(
|
|
dict_synonyms='',
|
|
paths_to_exclude='',
|
|
- runner='python -m pytest -x',
|
|
+ runner='"' + sys.executable + '" -m pytest -x',
|
|
tests_dir='tests/:test/',
|
|
pre_mutation=None,
|
|
post_mutation=None,
|