Hi Afternoon and all,

you wrote in the ticket that somehow, that the _ function gets replaced
by an Article. This is probably a bug in the existing test client due to
a strange interaction with doctests.

See:

http://mail.python.org/pipermail/python-list/2004-February/250829.html

"Setting __builtin__._ to the result of the last calculation is a side
effect of sys.displayhook."

I had the same problem with using py.test, and resorted to do this at
the beginning of each testcase:

__builtins__['_'] = gettext

It's a bit hackish and any different solution would probably be appreciated.

Since I'm not using the current test client (I needed testing before
this was available and resorted to py.test in a hackish way), could you
check this a bit and eventually file another ticket if I'm right?

Cheers,

Michael


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to