pytest-memray icon indicating copy to clipboard operation
pytest-memray copied to clipboard

Disable the caplog fixture by default

Open gaborbernat opened this issue 3 years ago • 0 comments

When profiling a service that generates logs pytest by default automatically collects all log records. This makes the memory profile not true to real life as all log lines are part of the peak memory usage, though in practice after every log that record would be removed. This feature can be disabled for pytest via -p no:logging. At the very least we should document this under gotcha's or even better provide a marker that does this?

gaborbernat avatar May 18 '22 19:05 gaborbernat