diff --git a/qutebrowser/test/config/test_conftypes.py b/qutebrowser/test/config/test_conftypes.py index 244865cf8..1c8f1136f 100644 --- a/qutebrowser/test/config/test_conftypes.py +++ b/qutebrowser/test/config/test_conftypes.py @@ -36,13 +36,6 @@ class Font(QFont): self.family(), self.pointSize(), self.weight(), self.style() & QFont.StyleItalic) - def __eq__(self, other): - """The default operator= of QFont seems to be rather strict.""" - return (self.family() == other.family() and - self.pointSize() == other.pointSize() and - self.weight() == other.weight() and - self.style() == other.style()) - @classmethod def fromdesc(cls, desc): """Get a Font based on a font description.""" diff --git a/qutebrowser/test/utils/test_misc.py b/qutebrowser/test/utils/test_misc.py index afed77fec..6e7e7ac2d 100644 --- a/qutebrowser/test/utils/test_misc.py +++ b/qutebrowser/test/utils/test_misc.py @@ -42,13 +42,6 @@ class Color(QColor): return 'Color({}, {}, {}, {})'.format( self.red(), self.green(), self.blue(), self.alpha()) - def __eq__(self, other): - """The default operator= of QColor seems to be rather strict.""" - return (self.red() == other.red() and - self.green() == other.green() and - self.blue() == other.blue() and - self.alpha() == other.alpha()) - class ElidingTests(unittest.TestCase):