From c8676002a7e11c7d4dcc39abdeb907826b244129 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 10 Jul 2020 12:05:15 +0300 Subject: [PATCH] code/code: remove redundant __ne__ implementation This implementation is the default when __eq__ is implemented. --- src/_pytest/_code/code.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/_pytest/_code/code.py b/src/_pytest/_code/code.py index c1e6f49f3..eb85d941c 100644 --- a/src/_pytest/_code/code.py +++ b/src/_pytest/_code/code.py @@ -69,9 +69,6 @@ class Code: # Ignore type because of https://github.com/python/mypy/issues/4266. __hash__ = None # type: ignore - def __ne__(self, other): - return not self == other - @property def path(self) -> Union[py.path.local, str]: """Return a path object pointing to source code (or a str in case