Skip to content

Commit

Permalink
bugfix: pytest import
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiirola committed Oct 12, 2024
1 parent a7ddf63 commit f3a9b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyomo/common/unittest.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# We defer this import so that we don't add a hard dependence on pytest.
# Note that importing test modules may cause this import to be resolved
# (and then enforce a strict dependence on pytest)
pytest = attempt_import('pytest')
pytest, pytest_available = attempt_import('pytest')


def _defaultFormatter(msg, default):
Expand Down

0 comments on commit f3a9b1f

Please sign in to comment.