Skip to content

Commit f3a9b1f

Browse files
committed
bugfix: pytest import
1 parent a7ddf63 commit f3a9b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyomo/common/unittest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
# We defer this import so that we don't add a hard dependence on pytest.
4646
# Note that importing test modules may cause this import to be resolved
4747
# (and then enforce a strict dependence on pytest)
48-
pytest = attempt_import('pytest')
48+
pytest, pytest_available = attempt_import('pytest')
4949

5050

5151
def _defaultFormatter(msg, default):

0 commit comments

Comments
 (0)