Remove unused pytest.param
@@ -214,16 +214,16 @@ def test_avoid_duplicate_instrumentation(simple_module):
@pytest.mark.parametrize(
"function_name, branchless_function_count, branches_count",
[
- pytest.param("simple_function", 1, 0),
- pytest.param("cmp_predicate", 0, 1),
- pytest.param("bool_predicate", 0, 1),
- pytest.param("for_loop", 0, 1),
- pytest.param("full_for_loop", 0, 1),
- pytest.param("multi_loop", 0, 3),
- pytest.param("comprehension", 1, 2),
- pytest.param("lambda_func", 1, 1),
- pytest.param("conditional_assignment", 0, 1),
- pytest.param("conditionally_nested_class", 2, 1),
+ ("simple_function", 1, 0),
+ ("cmp_predicate", 0, 1),
+ ("bool_predicate", 0, 1),
+ ("for_loop", 0, 1),
+ ("full_for_loop", 0, 1),
+ ("multi_loop", 0, 3),
+ ("comprehension", 1, 2),
+ ("lambda_func", 1, 1),
+ ("conditional_assignment", 0, 1),
+ ("conditionally_nested_class", 2, 1),
],
)
def test_integrate_branch_distance_instrumentation(
@@ -262,7 +262,7 @@ def test_integrate_line_coverage_instrumentation(simple_module):
@pytest.mark.parametrize(
"op",
- [pytest.param(op) for op in Compare if op != Compare.EXC_MATCH],
+ [op for op in Compare if op != Compare.EXC_MATCH],
)
def test_comparison(comparison_module, op):
tracer = ExecutionTracer()
