funkyfuture · GitHub

funkyfuture

requested changes Mar 12, 2019

s4heid added a commit to s4heid/cerberus that referenced this pull request

Mar 14, 2019
When the distribution of Cerberus cannot be found, catch the exception
instead of raising an error and exiting the program. This allows to
consume the package without installing it, e.g. as a git submodule. In
the exception case the __version__ string is set to `unknown`.
Fixes pyeve#471

@s4heid

funkyfuture

This includes:
* moving the tests from test_init.py into test_assorted.py
* rely on PYTHON_VERSION variable rather than the nested try/except
* monkeypatch inside the test function and get rid of cerberus fixture

funkyfuture

Read the original on github.com ↗