2017-04-20 02:25:53 +08:00
|
|
|
import pkg_resources
|
|
|
|
|
2017-04-21 03:46:58 +08:00
|
|
|
__all__ = ['__version__']
|
|
|
|
|
2016-08-22 00:13:32 +08:00
|
|
|
try:
|
2017-04-20 02:25:53 +08:00
|
|
|
__version__ = pkg_resources.get_distribution('pytest').version
|
|
|
|
except Exception:
|
2017-04-21 03:46:58 +08:00
|
|
|
# broken installation, we don't even try
|
|
|
|
# unknown only works because we do poor mans version compare
|
|
|
|
__version__ = 'unknown'
|