import sys
sys._running_pytest = True

def pytest_terminal_summary(terminalreporter):
    if (terminalreporter.stats.get('error', None) or
            terminalreporter.stats.get('failed', None)):
        terminalreporter.write_sep(' ', 'DO *NOT* COMMIT!', red=True, bold=True)

@@ -32,16 +32,58 @@
 = True%0A%0A
+from sympy.core.cache import clear_cache%0A%0A
 def pyte
@@ -312,8 +312,58 @@
 d=True)%0A
+%0Adef pytest_runtest_teardown():%0A    clear_cache()%0A

clear the cache after each test