On Sat, May 7, 2011 at 3:51 AM, Éric Araujo <mer...@netwok.org> wrote:
> regrtest helpfully reports when a test leaves the environment unclean
> (sys.path, os.environ, logging._handlerList)

A quick follow-up: I talked about regrtest with RDM on IRC, and I will
use the context manager that detects changes in the “if __name__ ==
'__main__'” blocks of our test files to find the guilty ones.  Some
warnings are subtle to track down: the test runs a command which
instantiates a class which calls a function and here’s the code that
sets an environment variable.

In the future, I’ll take part in the efforts to reimplement parts of
regrtest with new unittest features.  Right now it’s quite painful to
have to use either unittest to run just one file or regrtest to get the
warnings.

Cheers
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to