diff --git a/src/_pytest/mark/structures.py b/src/_pytest/mark/structures.py index 2cab96d67..924d980f3 100644 --- a/src/_pytest/mark/structures.py +++ b/src/_pytest/mark/structures.py @@ -213,9 +213,6 @@ class MarkDecorator: def markname(self): return self.name # for backward-compat (2.4.1 had this attr) - def __eq__(self, other): - return self.mark == other.mark if isinstance(other, MarkDecorator) else False - def __repr__(self): return "".format(self.mark)