Skip to content

Commit

Permalink
TST: Handle error log with PROJ 8+"
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Feb 21, 2021
1 parent 31d934f commit 6e4584d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_datadir.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 6e4584d

Please sign in to comment.