From eb46d2a20c35192f7509d74d04c7b2fc1de67b52 Mon Sep 17 00:00:00 2001 From: Tim van Katwijk Date: Wed, 30 Nov 2022 21:33:53 +0100 Subject: [PATCH] linter errors. --- dockerfile_parse/util.py | 3 --- tests/test_parser.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/dockerfile_parse/util.py b/dockerfile_parse/util.py index f4bac87..ebe6267 100644 --- a/dockerfile_parse/util.py +++ b/dockerfile_parse/util.py @@ -441,9 +441,6 @@ def __eq__(self, other): else: return NotImplemented - def __ne__(self, other): - return not self == other - def __hash__(self): return hash(self.to_str()) diff --git a/tests/test_parser.py b/tests/test_parser.py index cc7ac97..6ceccca 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -75,11 +75,9 @@ def test_image_name_comparison(self, image_string, dictionary): i2 = ImageName(registry=dictionary["registry"], namespace=dictionary["namespace"], repo=dictionary["repo"], tag=dictionary["tag"]) assert i1 == i2 - assert not i1 != i2 i2 = ImageName(registry='foo.com', namespace='spam', repo='bar', tag='2') assert not i1 == i2 - assert i1 != i2 @pytest.mark.parametrize(('repo', 'organization', 'enclosed_repo'), (