diff --git a/src/_pytest/assertion/rewrite.py b/src/_pytest/assertion/rewrite.py index 21bcaadb8..b29a254f5 100644 --- a/src/_pytest/assertion/rewrite.py +++ b/src/_pytest/assertion/rewrite.py @@ -18,7 +18,6 @@ import sys import tokenize import types from typing import Callable -from typing import DefaultDict from typing import Dict from typing import IO from typing import Iterable diff --git a/src/_pytest/python.py b/src/_pytest/python.py index 7bdd093b7..f71e00e69 100644 --- a/src/_pytest/python.py +++ b/src/_pytest/python.py @@ -1126,9 +1126,9 @@ def resolve_values_indices_in_parametersets( argname_value_indices_for_hashable_ones[argname][value] ) except KeyError: # New unique value - argname_value_indices_for_hashable_ones[argname][ - value - ] = argvalues_count[argname] + argname_value_indices_for_hashable_ones[argname][value] = ( + argvalues_count[argname] + ) argname_indices.append(argvalues_count[argname]) argvalues_count[argname] += 1 except TypeError: # `value` is not hashable