use unknown to specify unknown versions
This commit is contained in:
parent
2cf422733c
commit
4242bf6262
|
@ -1,7 +1,10 @@
|
|||
__all__ = ['__version__']
|
||||
import pkg_resources
|
||||
|
||||
__all__ = ['__version__']
|
||||
|
||||
try:
|
||||
__version__ = pkg_resources.get_distribution('pytest').version
|
||||
except Exception:
|
||||
__version__ = None # broken installation, we don't even try
|
||||
# broken installation, we don't even try
|
||||
# unknown only works because we do poor mans version compare
|
||||
__version__ = 'unknown'
|
||||
|
|
Loading…
Reference in New Issue