import sys
sys._running_pytest = True

from sympy.core.cache import clear_cache

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)

def pytest_runtest_teardown():
    clear_cache()

@@ -74,16 +74,321 @@
 _cache%0A%0A
+def pytest_report_header(config):%0A    from sympy.utilities.misc import ARCH%0A    s = %22architecture: %25s%5Cn%22 %25 ARCH%0A    from sympy.core.cache import USE_CACHE%0A    s += %22cache:        %25s%5Cn%22 %25 USE_CACHE%0A    from sympy.polys.domains import GROUND_TYPES%0A    s += %22ground types: %25s%5Cn%22 %25 GROUND_TYPES%0A    return s%0A%0A
 def pyte

Add more info to pytest header