diff test/mocknull.py @ 5461:ad8031290639

Python 3 compatibility for missing / mock value
author Christof Meerwald <cmeerw@cmeerw.org>
date Tue, 24 Jul 2018 21:39:37 +0100
parents a35d4cc8cd1a
children b1ab8bd18e79
line wrap: on
line diff
--- a/test/mocknull.py	Tue Jul 24 21:25:38 2018 +0100
+++ b/test/mocknull.py	Tue Jul 24 21:39:37 2018 +0100
@@ -20,6 +20,8 @@
     # Python 2 compatibility:
     __nonzero__ = __bool__
     def __contains__(self, key): return False
+    def __eq__(self, rhs): return False
+    def __ne__(self, rhs): return False
     def __str__(self): return ''
     def __repr__(self): return '<MockNull 0x%x>'%id(self)
     def gettext(self, str): return str

Roundup Issue Tracker: http://roundup-tracker.org/