runtests throws an exception because of clash between gettext and doctest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wxBanker |
Fix Released
|
Low
|
Michael Rooney |
Bug Description
I have language support for French and Russian installed through Ubuntu's "Language Support" tool. I'm running from source, trunk revno 829. Running the following command from the root of the branch gives me the following output:
$ python -m wxbanker/runtests
DOCTESTS:
File "wxbanker/
Failed example:
model.
Expected:
u'$90.27'
Got:
u'\xa390.27'
*******
File "wxbanker/
Failed example:
model.
Expected:
u'-$111.00'
Got:
u'-\xa3111.00'
*******
1 items had failures:
2 of 60 in wxbanker.controller
***Test Failed*** 2 failures.
TestResults(
Traceback (most recent call last):
File "/usr/lib/
"__main__", fname, loader, pkg_name)
File "/usr/lib/
exec code in run_globals
File "/home/
main()
File "/home/
alltests.main()
File "wxbanker/
suite = unittest.
File "/usr/lib/
suites = [self.loadTests
File "/usr/lib/
module = __import_
File "wxbanker/
assertLocal
File "wxbanker/
reload(
File "wxbanker/
CurrencyStr
TypeError: 'bool' object is not callable
I suspect this is because of the well-known clash between doctest and gettext.
Changed in wxbanker: | |
status: | Fix Committed → Fix Released |
I edited line 334 in wxbanker/ currencies. py to become:
CurrencySttrings[0] += " (%s)" % "detected"
I received the attached output.