Skip to content

Commit cae4277

Browse files
committed
fix(tests): disable other logging to avoid closing buffer issue in Click testing
1 parent 0d6c9e6 commit cae4277

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22

33
import hashlib
44
import json
5+
import logging
56
import os
67
from pathlib import Path
78
from types import GeneratorType
89

910
import pytest
1011

12+
# Fix: I/O operation on closed (https://github.com/pallets/click/issues/824)
13+
logging.getLogger("matplotlib").setLevel(logging.ERROR)
14+
1115
test_type = os.environ.get("TEST_TYPE")
1216
state_file = Path(f".pytest_cache/state_{test_type}.json")
1317

0 commit comments

Comments
 (0)