pytest: do not use terminalwriter (why it was used in the first place?)