Skip to content

Instantly share code, notes, and snippets.

@elibixby
Created March 14, 2017 01:17
Show Gist options
  • Save elibixby/ac829c83972c4fb9f5a3c8ff16d87e9f to your computer and use it in GitHub Desktop.
Save elibixby/ac829c83972c4fb9f5a3c8ff16d87e9f to your computer and use it in GitHub Desktop.
elibixby@elibixby-4:~/repos/GoogleCloudPlatform/python-docs-samples$ nox -e "py35(sample='./ml_engine/online_prediction')"
nox > Running session py35(sample='./ml_engine/online_prediction')
nox > The virtualenv name was hashed to avoid being too long.
nox > virtualenv /usr/local/google/home/elibixby/repos/GoogleCloudPlatform/python-docs-samples/.nox/012715f6 -p python3.5
nox > pip install --upgrade -r testing/requirements.txt
nox > pip install --upgrade git+https://github.com/GoogleCloudPlatform/python-repo-tools.git
nox > chdir ./ml_engine/online_prediction
nox > pip install --upgrade -r requirements.txt
nox > pytest --cov --cov-config /usr/local/google/home/elibixby/repos/GoogleCloudPlatform/python-docs-samples/.coveragerc --cov-report term
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.5.3, pytest-3.0.6, py-1.4.32, pluggy-0.4.0 -- /usr/local/google/home/elibixby/repos/GoogleCloudPlatform/python-docs-samples/.nox/012715f6/bin/python3.5
cachedir: ../../.cache
rootdir: /usr/local/google/home/elibixby/repos/GoogleCloudPlatform/python-docs-samples, inifile: pytest.ini
plugins: cov-2.4.0, capturelog-0.7, flaky-3.3.0
collected 0 items / 1 errors
----------- coverage: platform linux, python 3.5.3-final-0 -----------
Name Stmts Miss Cover
-------------------------------------
__init__.py 0 0 100%
predict_test.py 23 19 17%
-------------------------------------
TOTAL 23 19 17%
===================================================================================================== ERRORS ======================================================================================================
__________________________________________________________________________ ERROR collecting ml_engine/online_prediction/predict_test.py ___________________________________________________________________________
ImportError while importing test module '/usr/local/google/home/elibixby/repos/GoogleCloudPlatform/python-docs-samples/ml_engine/online_prediction/predict_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
predict_test.py:21: in <module>
import predict
E ImportError: No module named 'predict'
============================================================================================= pytest-warning summary ==============================================================================================
WI1 /usr/local/google/home/elibixby/repos/GoogleCloudPlatform/python-docs-samples/.nox/012715f6/lib/python3.5/site-packages/pytest_capturelog.py:171 'pytest_runtest_makereport' hook uses deprecated __multicall__ argument
WC1 None pytest_funcarg__caplog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0. Please remove the prefix and use the @pytest.fixture decorator instead.
WC1 None pytest_funcarg__capturelog: declaring fixtures using "pytest_funcarg__" prefix is deprecated and scheduled to be removed in pytest 4.0. Please remove the prefix and use the @pytest.fixture decorator instead.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================================================== 3 pytest-warnings, 1 error in 0.22 seconds ====================================================================================
nox > Command pytest --cov --cov-config /usr/local/google/home/elibixby/repos/GoogleCloudPlatform/python-docs-samples/.coveragerc --cov-report term failed with exit code 2
nox > Session py35(sample='./ml_engine/online_prediction') failed. :(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment