Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PyTest memory utilization test
from logging import basicConfig, getLogger
import pytest
log = getLogger()
def func_that_logs_a_lot():
for i in range(1000):'foo output %s/1000', i)
def test_func_that_logs_a_lot():
for _ in range(1000):
output = func_that_logs_a_lot()'got output: %s', output)
You can’t perform that action at this time.