Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
boxed committed Mar 2, 2020
1 parent b1e513e commit 4e1b5e3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ Credits
* John Vandenberg <jayvdb@gmail.com>
* Luca Simonetto <luca.simonetto.94@gmail.com>
* Emil Stenström <emil@emilstenstrom.se>
* Roxane Bellott <roxane.bellot@gmail.com>
* Tomáš Chvátal <tchvatal@suse.com>
14 changes: 14 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Changelog
---------

1.7.0 (2020-02-29)
~~~~~~~~~~~~~~~~~~

* Bugfix for multiple assignment. Mutmut used to not handle `foo = bar = baz` correctly (Thanks Roxane Bellot!)

* Bugfix for incorrect mutation of "in" operator (Thanks Roxane Bellot!)

* Fixed bug where a mutant survived in the internal AST too long. This could cause mutmut to apply more than one mutant at a time.

* Vastly improved startup performance when resuming a mutation run.

* Added new experimental feature for advanced config at runtime of mutations


1.6.0 (2019-09-21)
~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion mutmut/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from parso import parse
from parso.python.tree import Name, Number, Keyword

__version__ = '1.6.0'
__version__ = '1.7.0'


class MutationID(object):
Expand Down
2 changes: 2 additions & 0 deletions mutmut/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ def cached_mutation_status(filename, mutation_id, hash_of_tests):
line = Line.get(sourcefile=sourcefile, line=mutation_id.line, line_number=mutation_id.line_number)
assert line
mutant = Mutant.get(line=line, index=mutation_id.index)
if mutant is None:
mutant = get_or_create(Mutant, line=line, index=mutation_id.index, defaults=dict(status=UNTESTED))

if mutant.status == OK_KILLED:
# We assume that if a mutant was killed, a change to the test
Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def test_full_run_all_suspicious_mutant_junit(filesystem):
assert int(root.attrib['disabled']) == 0


@pytest.skip("TODO: fix support for coverage 5")
@pytest.mark.skip("TODO: fix support for coverage 5")
def test_use_coverage(capsys, filesystem):
with open(os.path.join(str(filesystem), "tests", "test_foo.py"), 'w') as f:
f.write(test_file_contents.replace('assert foo(2, 2) is False\n', ''))
Expand Down

0 comments on commit 4e1b5e3

Please sign in to comment.