1
0
forked from pool/python-mutmut
python-mutmut/no-direct-python-call.patch
Tomáš Chvátal bed5e7ccf2 - Update to 1.6.0:
* 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
2019-10-15 08:19:02 +00:00

14 lines
679 B
Diff

Index: mutmut-1.6.0/tests/test_main.py
===================================================================
--- mutmut-1.6.0.orig/tests/test_main.py
+++ mutmut-1.6.0/tests/test_main.py
@@ -337,7 +337,7 @@ def test_use_coverage(capsys, filesystem
assert int(root.attrib['disabled']) == 0
# generate a `.coverage` file by invoking pytest
- subprocess.run(["python", "-m", "pytest", "--cov=.", "foo.py"])
+ subprocess.run([sys.executable, "-m", "pytest", "--cov=.", "foo.py"])
assert os.path.isfile('.coverage')
result = CliRunner().invoke(climain, ['run', '--paths-to-mutate=foo.py', "--test-time-base=15.0", "--use-coverage"], catch_exceptions=False)