Not really, caching is a decision made at import time (there's probably a 
more precise language for this).  I think there are two options here:

1) Write a context manager that forces calls to f.__wrapped__ rather than f 
so that the cache is bypassed.  This may not be possible.

2) Have a set of tests run without the cache and add the option to bin/test 
to select them. This is definitely possible.

On Wednesday, May 6, 2015 at 12:56:58 AM UTC-6, Joachim Durchholz wrote:
>
> I'm currently tutoring PR #9376, which fixes a bug that happens only 
> when caching is turned off. 
> We're trying to figure out a way to write a regression test. Our test 
> suite is run with caching switched on, even on Travis, so we need a way 
> to make sure that this single test is running with caching switched off. 
>
> I gather that the test framework does clear_cache() before each test, 
> but that's not enough - the test seems to be filling the cache on its 
> own, and enough to break the infinite recursion that will happen without 
> caching. So we really need to disable the caching machinery on a 
> per-test basis. 
> Does such a feature exist? 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/cf05bc44-b413-4f27-8e25-3194fa4d71e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to