On Sun, 11 Dec 2011 18:58:18 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote: > Perhaps we should have a test-lib.py for test-specific stuff like this > (similar to test-lib.el)? I think it would be cleaner and makes it easy > to add more Python test auxiliary functions later. Well, right now that would probably be overkill: the stdout-to-file redirection takes 3 lines at most. Besides we would still need to set some environment variables to run python with the correct directories. But of course if we need to add more helper functions for running python tests, then a test-lib.py would be nice. Maybe we could even think about using one of Python's unit test libs for that: doctest, unittest (both in the standard library) and nose seem to be the most popular ones. Regards, -- Thomas/Schnouki