Skip to content

Instantly share code, notes, and snippets.

@carlosalberto
Created September 30, 2020 14:22
Show Gist options
  • Save carlosalberto/65943ed6eefe368cbd8575f9d3fdb660 to your computer and use it in GitHub Desktop.
Save carlosalberto/65943ed6eefe368cbd8575f9d3fdb660 to your computer and use it in GitHub Desktop.
py37-test-api run-test: commands[0] | pytest
=================================================================================== test session starts ====================================================================================
platform darwin -- Python 3.7.4, pytest-6.1.0, py-1.9.0, pluggy-0.13.1 -- /development/opentelemetry-python/.tox/py37-test-api/bin/python
cachedir: .tox/py37-test-api/.pytest_cache
rootdir: /development/opentelemetry-python, configfile: pyproject.toml
collected 0 items / 1 error
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Traceback (most recent call last):
File "/development/opentelemetry-python/.tox/py37-test-api/bin/pytest", line 11, in <module>
sys.exit(console_main())
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/_pytest/config/__init__.py", line 187, in console_main
code = main()
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/_pytest/config/__init__.py", line 165, in main
config=config
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/manager.py", line 87, in <lambda>
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/callers.py", line 208, in _multicall
return outcome.get_result()
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/_pytest/main.py", line 306, in pytest_cmdline_main
return wrap_session(config, _main)
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/_pytest/main.py", line 295, in wrap_session
session=session, exitstatus=session.exitstatus
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in __call__
return self._hookexec(self, self.get_hookimpls(), kwargs)
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/manager.py", line 93, in _hookexec
return self._inner_hookexec(hook, methods, kwargs)
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/manager.py", line 87, in <lambda>
firstresult=hook.spec.opts.get("firstresult") if hook.spec else False,
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/callers.py", line 203, in _multicall
gen.send(outcome)
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/_pytest/terminal.py", line 794, in pytest_sessionfinish
outcome.get_result()
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/callers.py", line 80, in get_result
raise ex[1].with_traceback(ex[2])
File "/development/opentelemetry-python/.tox/py37-test-api/lib/python3.7/site-packages/pluggy/callers.py", line 187, in _multicall
res = hook_impl.function(*args)
File "/development/opentelemetry-python/instrumentation/opentelemetry-instrumentation-boto/tests/conftest.py", line 28, in pytest_sessionfinish
environ.pop("AWS_ACCESS_KEY_ID")
File "/development/opentelemetry-python/.tox/py37-test-api/bin/../lib/python3.7/_collections_abc.py", line 795, in pop
value = self[key]
File "/development/opentelemetry-python/.tox/py37-test-api/bin/../lib/python3.7/os.py", line 678, in __getitem__
raise KeyError(key) from None
KeyError: 'AWS_ACCESS_KEY_ID'
ERROR: InvocationError for command /development/opentelemetry-python/.tox/py37-test-api/bin/pytest (exited with code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment