Skip to content

Commit 1ffbca5

Browse files
author
Alexander Smishlajev
committed
.gettext() facility is vital for many roundup objects.
lots of tests failed because MockNull objects returned inappropriate value from .gettext().
1 parent ccf2c9f commit 1ffbca5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/mocknull.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ def __getitem__(self, key): return self
1919
def __nonzero__(self): return 0
2020
def __str__(self): return ''
2121
def __repr__(self): return '<MockNull 0x%x>'%id(self)
22+
def gettext(self, str): return str
23+
_ = gettext

0 commit comments

Comments
 (0)