Comment #15 on issue 1587 by asmeurer: Polynomials docs http://code.google.com/p/sympy/issues/detail?id=1587
So as far as I can tell, each file *does* run in its own namespace. For example, if you remove the "from sympy import *" from the very top of statistics.txt and run the full doctests, you get failures. But I think they way that it does it is just the standard way of passing an empty namespace dictionary to exec, so cached hooks are not changed. This is why we had the displayhook error. I am not 100% sure that this is all correct, but I think that it is.
So I think your solution is actually the correct one. You could probably figure out how to reset the modules between runs in the files, but one might argue that this isn't even a good idea because it would make the tests run slower. What really should be done is to make it so that you can set the Basic.keep_sign to false at the end of wester.txt.
I've never even heard of this Basic.keep_sign. What is it, and why do you need it to be set to True in wester.txt? And why is it cached?
-- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-iss...@googlegroups.com. To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en.