Edit: test_logcapture.py