From 09065b9dfb3b034d40d17a45393c1061d53d6121 Mon Sep 17 00:00:00 2001 From: Frank Hoffmann <15r10nk-git@polarbit.de> Date: Sat, 26 Oct 2024 15:28:23 +0200 Subject: [PATCH] test: fixed some tests and added hammett to the test_requirements --- mutmut/__main__.py | 2 -- test_requirements.txt | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mutmut/__main__.py b/mutmut/__main__.py index aa4c7670..77cd89cc 100644 --- a/mutmut/__main__.py +++ b/mutmut/__main__.py @@ -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': @@ -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 diff --git a/test_requirements.txt b/test_requirements.txt index 1d539dac..b237c728 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -2,3 +2,4 @@ pytest mock>=2.0.0 coverage whatthepatch==0.0.6 +hammett