summaryrefslogtreecommitdiff
path: root/testtools/testcase.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2022-11-19 17:57:18 +0000
committerGitHub <noreply@github.com>2022-11-19 17:57:18 +0000
commit142cb77e2b85bd606be16208ca55012b8eff136a (patch)
tree5d60158c01f2253ced9270ecbe22d7e1220e4e40 /testtools/testcase.py
parent347a27dd5a95a890ac1d615e46e94d9676dd2f48 (diff)
parentd602d9a2532fa952647f635a2e97fe3de3cec49b (diff)
downloadtesttools-mypy.tar.gz
Merge branch 'master' into mypymypy
Diffstat (limited to 'testtools/testcase.py')
-rw-r--r--testtools/testcase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testtools/testcase.py b/testtools/testcase.py
index f3bd510..5bbff25 100644
--- a/testtools/testcase.py
+++ b/testtools/testcase.py
@@ -273,7 +273,7 @@ class TestCase(unittest.TestCase):
eq = getattr(unittest.TestCase, '__eq__', None)
if eq is not None and not unittest.TestCase.__eq__(self, other):
return False
- return self.__dict__ == other.__dict__
+ return self.__dict__ == getattr(other, '__dict__', None)
__hash__ = unittest.TestCase.__hash__