Fix NotImplemented into NotImplementedError
(transplanted from a1bd31febf2954da49303b3e1e490a714a98ebb4)
This commit is contained in:
1 parent
d4a1b0e3ab
commit
852453726b
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -51,7 +51,7 @@ class Config(object):
|
||||
def __eq__(self, other):
|
||||
if isinstance(other, Config):
|
||||
return repr(self) == repr(other)
|
||||
return NotImplemented
|
||||
return NotImplementedError
|
||||
|
||||
|
||||
class _TrytondMethod(object):
|
||||
|
||||
@@ -26,4 +26,4 @@ class TestConfig(TestCase):
|
||||
config2 = proteus.config.get_config()
|
||||
self.assertEqual(config1, config2)
|
||||
|
||||
self.assertEqual(config1.__eq__(None), NotImplemented)
|
||||
self.assertRaises(NotImplementedError, config1.__eq__, None)
|
||||
Reference in new issue
Block a user