Skip to content

Commit

Permalink
Merge commit '96c89ba00efa5ac6ce0d5f04f7f008c04df7df95' into backport…
Browse files Browse the repository at this point in the history
…-0.14.1
  • Loading branch information
bashtage committed Dec 14, 2023
2 parents 6ecbbaa + 96c89ba commit 4dfecec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions statsmodels/tools/_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __call__(self, extra_args=None, exit=False):
print('Running pytest ' + ' '.join(cmd))
status = pytest.main(cmd)
if exit:
print(f"Exit status: {status}")
sys.exit(status)
except ImportError:
raise ImportError('pytest>=3 required to run the test')
Expand Down
3 changes: 3 additions & 0 deletions tools/ci/azure/azure_template_posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ jobs:
mkdir test_run_dir
pushd test_run_dir
python -c "import statsmodels; statsmodels.test(['-n', 'auto', '--junitxml=../junit/test-results.xml', '--skip-examples', '--dist', 'loadscope', '--durations=25'], exit=True)"
LAST_EXIT_CODE=$?
echo "Status code: ${LAST_EXIT_CODE}"
exit ${LAST_EXIT_CODE}
popd
displayName: 'Run tests (site-packages)'
condition: eq(variables['test.install'], 'true')
Expand Down

0 comments on commit 4dfecec

Please sign in to comment.