Fix NotImplemented into NotImplementedError

(transplanted from a1bd31febf2954da49303b3e1e490a714a98ebb4)
This commit is contained in:
Cédric Krier committed 2011-08-09 10:07:10 +02:00
1 parent d4a1b0e3ab
commit 852453726b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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):
+1 -1
View File
@@ -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)