On Tue, Nov 20, 2012 at 3:06 PM, Steffen Hoffmann <hoff...@web.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > [...] > I do add print statements to unit test quite often to speed-up debugging > recently. So I can confirm that they do work. In fact I've found them to > work most of the time, but not always. Still I've discovered other ways > to get to data from places, where print statements don't work. > One of the comments in your code suggests to me that you run unit tests like: `PYTHONPATH=. python path/to/my/tests.py`. Is that always or nearly always true? I've been running them using `PYTHONPATH=. python test`, so I'll have to try both ways next time around now that I've seen Ethan's comment. -- You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to trac-dev@googlegroups.com. To unsubscribe from this group, send email to trac-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en.