pyvarint/test/test_version.py
2020-06-30 01:40:01 +02:00

11 lines
252 B
Python

"""Version test module."""
def test_version_fails_gracefully(mocker):
target = "pkg_resources.get_distribution"
mocker.patch(target, side_effect=Exception())
from pyvarint.__init__ import __version__
assert __version__ == "unknown"