Skip to content

Commit 7edc107

Browse files
committed
fix: avoid to mutate metaclasses
1 parent 20d0a62 commit 7edc107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: mutmut/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
# TODO: hash of function. If hash changes, retest all mutants as mutant IDs are not stable
6969

7070

71-
NEVER_MUTATE_FUNCTION_NAMES = {'__getattribute__', '__setattr__'}
71+
NEVER_MUTATE_FUNCTION_NAMES = {'__getattribute__', '__setattr__', '__new__'}
7272
NEVER_MUTATE_FUNCTION_CALLS = {'isinstance', 'len'}
7373
CLASS_NAME_SEPARATOR = 'ǁ'
7474

0 commit comments

Comments
 (0)