Skip to content

Commit

Permalink
test: fixed some tests and added hammett to the test_requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Oct 26, 2024
1 parent fb75ed6 commit 09065b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions mutmut/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ class BadTestExecutionCommandsException(Exception):
from inspect import signature as _mutmut_signature
def _mutmut_trampoline(orig, mutants, *args, **kwargs):
__tracebackhide__ = True
import os
mutant_under_test = os.environ.get('MUTANT_UNDER_TEST',"")
if mutant_under_test == 'fail':
Expand Down Expand Up @@ -333,7 +332,6 @@ def build_trampoline(*, orig_name, mutants, class_name, is_generator):
{mutants_dict}
def {orig_name}({'self, ' if class_name is not None else ''}*args, **kwargs):
__tracebackhide__ = True
result = {yield_statement}{trampoline_name}({access_prefix}{mangled_name}__mutmut_orig{access_suffix}, {access_prefix}{mangled_name}__mutmut_mutants{access_suffix}, *args, **kwargs)
return result
Expand Down
1 change: 1 addition & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pytest
mock>=2.0.0
coverage
whatthepatch==0.0.6
hammett

0 comments on commit 09065b9

Please sign in to comment.