14
0
forked from pool/python-mutmut

- 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
This commit is contained in:
Tomáš Chvátal
2019-10-15 08:19:02 +00:00
committed by Git OBS Bridge
parent 3fd620780d
commit bed5e7ccf2
8 changed files with 49 additions and 114 deletions

View File

@@ -0,0 +1,13 @@
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)