diff --git a/test/test_datadir.py b/test/test_datadir.py index a283bf4b6..0f2381d5b 100644 --- a/test/test_datadir.py +++ b/test/test_datadir.py @@ -18,7 +18,7 @@ ) from pyproj.enums import PJType from pyproj.exceptions import CRSError -from test.conftest import proj_env +from test.conftest import PROJ_GTE_8, proj_env @contextmanager @@ -237,7 +237,10 @@ def test_proj_debug_logging(capsys): assert "PROJ_TRACE" not in captured.err assert "PROJ_DEBUG" in captured.err else: - assert captured.err == "" + if PROJ_GTE_8: + assert "PROJ_ERROR" in captured.err + else: + assert captured.err == "" def test_proj_debug_logging__error(capsys):