From fbc28799d5f0eb7b65f86ba5ec270d1e24987fc8 Mon Sep 17 00:00:00 2001 From: Richard West Date: Fri, 9 Apr 2021 10:23:25 -0400 Subject: [PATCH 1/3] Print output to debug the TestEvalModel unit test This unit test is failing on Travis only on Python 3.6 but not Python 3.5 on PR #20, and we can't make sense of why. This is mostly a "no change" pull request to trigger the CI tests, but I added a print(output) statement to help debug. --- pyteck/tests/test_eval_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyteck/tests/test_eval_model.py b/pyteck/tests/test_eval_model.py index f25f1a8..f48ccb9 100644 --- a/pyteck/tests/test_eval_model.py +++ b/pyteck/tests/test_eval_model.py @@ -219,6 +219,7 @@ def test(self): num_threads=1, skip_validation=True ) + print(output) assert numpy.isclose(output['average error function'], 58.78211242028232, rtol=1.e-3) assert numpy.isclose(output['error function standard deviation'], 0.0, rtol=1.e-3) assert numpy.isclose(output['average deviation function'], 7.635983785416241, rtol=1.e-3) From 8d16f3205c4f6d1fe3b339e708f3ef112f2b01e8 Mon Sep 17 00:00:00 2001 From: Richard West Date: Fri, 9 Apr 2021 10:54:07 -0400 Subject: [PATCH 2/3] TemporaryMake pytest report captured stdout for passing tests in Travis This adds a flag to pytest when running on Travis so that it reports the captured stdout even on passing unit tests, so we can compare. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ba29cf6..ab7d095 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,7 +55,7 @@ install: script: - set -e - if [[ -z "$TRAVIS_TAG" ]]; then - pytest -vv --cov=./; + pytest -vv -P --cov=./; if [[ "$PYTHON" == "3.6" && "$TRAVIS_OS_NAME" == "linux" ]]; then git checkout -- test-environment.yaml; conda install -q sphinx doctr nbsphinx ipython; From 901332f97ffb1cd0a65d81b4d1b3bd890f7f3211 Mon Sep 17 00:00:00 2001 From: Richard West Date: Fri, 9 Apr 2021 11:08:31 -0400 Subject: [PATCH 3/3] fixup last commit --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ab7d095..40b7f8f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -55,7 +55,7 @@ install: script: - set -e - if [[ -z "$TRAVIS_TAG" ]]; then - pytest -vv -P --cov=./; + pytest -vv -rP --cov=./; if [[ "$PYTHON" == "3.6" && "$TRAVIS_OS_NAME" == "linux" ]]; then git checkout -- test-environment.yaml; conda install -q sphinx doctr nbsphinx ipython;