Files
olivv-cs-ComfyUI-FunPack/tools/memguard_pytest.py
T

10 lines
280 B
Python

"""pytest plugin for memguard: records the running test so the guard can report it when it kills."""
import os
def pytest_runtest_logstart(nodeid, location):
path = os.environ.get("MEMGUARD_STATE")
if path:
with open(path, "w") as f:
f.write(nodeid)