We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d48ab4d commit 4f209fcCopy full SHA for 4f209fc
pytest_flask/plugin.py
@@ -34,7 +34,13 @@ def __eq__(self, other):
34
status_code = int(other)
35
return self.status_code == status_code
36
except:
37
- return super(JSONResponse, self).__eq__(other)
+ super_class = super(JSONResponse, self)
38
+ try:
39
+ super_eq = getattr(super_class, '__eq__')
40
+ except AttributeError:
41
+ super_eq = object.__eq__
42
+ finally:
43
+ return super_eq(other)
44
45
46
def pytest_assertrepr_compare(op, left, right):
0 commit comments