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:
committed by
Git OBS Bridge
parent
3fd620780d
commit
bed5e7ccf2
13
no-direct-python-call.patch
Normal file
13
no-direct-python-call.patch
Normal 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)
|
||||
Reference in New Issue
Block a user