test_ok1/_pytest/__init__.py

11 lines
277 B
Python
Raw Normal View History

import pkg_resources
__all__ = ['__version__']
try:
__version__ = pkg_resources.get_distribution('pytest').version
except Exception:
# broken installation, we don't even try
# unknown only works because we do poor mans version compare
__version__ = 'unknown'