diff options
Diffstat (limited to 'testtools/testcase.py')
-rw-r--r-- | testtools/testcase.py | 2 |
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__ |