Skip to content

Commit

Permalink
use import_optional_dependency() for pytest in markers module
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed May 13, 2024
1 parent 660364b commit 52429eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modflow_devtools/markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
from platform import python_version, system
from typing import Dict, Optional

import pytest
from packaging.version import Version

from modflow_devtools.imports import import_optional_dependency
from modflow_devtools.misc import (
get_current_branch,
has_exe,
Expand All @@ -18,6 +18,7 @@
is_in_ci,
)

pytest = import_optional_dependency("pytest")
py_ver = Version(python_version())


Expand Down

0 comments on commit 52429eb

Please sign in to comment.