1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
# This sample was generated for the following code mutation detected by mutmut:
#
# --- tests/deadcode.py
# +++ tests/deadcode.py
# @@ -36,27 +36,7 @@
# def __init__(self):
# self.future_annotations = False
#
# - operator_map = {
# - # binary
# - ast.Add: operator.add,
# - ast.Sub: operator.sub,
# - ast.Mult: operator.mul,
# - ast.Div: operator.truediv,
# - ast.FloorDiv: operator.floordiv,
# - ast.Mod: operator.mod,
# - ast.Pow: operator.pow,
# - ast.LShift: operator.lshift,
# - ast.RShift: operator.rshift,
# - ast.BitOr: operator.or_,
# - ast.BitXor: operator.xor,
# - ast.BitAnd: operator.and_,
# - ast.MatMult: operator.matmul,
# - # unary
# - ast.UAdd: operator.pos,
# - ast.USub: operator.neg,
# - ast.Not: operator.not_,
# - ast.Invert: operator.invert,
# - }
# + operator_map = None
#
# def annotate_static_values(self, node):
# for n in ast.iter_child_nodes(node):
#
if not 'a':
print
|