Closed
Description
Several PRs on github are failing now because of this error.
Seems related to these problems in pytest
- pytest capture logging error still happening pytest-dev/pytest#5502 (comment)
- "ValueError: I/O operation on closed file." with click's CliRunner (capturing) pytest-dev/pytest#3344
UPD: Problem is because pytest tampers with stdout/stderr. Anything that uses them, can cause this problem (logging
, print
, tqdm
in our case)
UPD2: Now the only problem is tqdm that must be disabled completely in certain tests
UPD3: more related things
- ValueError: I/O operation on closed file pytest-dev/pytest#14 (comment)
- possibly this also: Cannot run capsys tests at the same time JonathanCasey/asana_extensions#51 (there's usage of capsys in one test)