From 24c4c78642b03d68596f307ed12bb8fe62a28e52 Mon Sep 17 00:00:00 2001 From: Bruno Santos Date: Sun, 19 Nov 2023 01:08:15 +0000 Subject: [PATCH] FIXME: test: show DocCursor cache stats Don't really know how to do this better at this point, but it allows some crude testing for now. --- test/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/conftest.py diff --git a/test/conftest.py b/test/conftest.py new file mode 100644 index 00000000..35e873df --- /dev/null +++ b/test/conftest.py @@ -0,0 +1,6 @@ +import sys +from hawkmoth.doccursor import DocCursor + +def pytest_sessionfinish(session, exitstatus): + print('\n>>> DocCursor cache stats:', file=sys.stderr) + print(DocCursor.cache_info(), file=sys.stderr)