diff options
author | holger krekel <holger@merlinux.eu> | 2014-09-23 16:36:38 +0200 |
---|---|---|
committer | holger krekel <holger@merlinux.eu> | 2014-09-23 16:36:38 +0200 |
commit | a46ebec4fa7a901706379447b7dab7a3c706a7ac (patch) | |
tree | c7758d96f56bffd7b2f6d4d1979c2aaecb374b8e /tox/_config.py | |
parent | 5bd0130f9de902a71afb984a7bfee1921120ab32 (diff) | |
parent | 584fd45df00855b87308f4e4fc2d2e16efdbebb3 (diff) | |
download | tox-a46ebec4fa7a901706379447b7dab7a3c706a7ac.tar.gz |
Merged in flub/tox (pull request #119)
Better error reporting for a bad interpreter
Diffstat (limited to 'tox/_config.py')
-rw-r--r-- | tox/_config.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tox/_config.py b/tox/_config.py index 07f2365..d0f8c3e 100644 --- a/tox/_config.py +++ b/tox/_config.py @@ -184,6 +184,9 @@ class VenvConfig: info = self.config.interpreters.get_info(self.basepython) if not info.executable: raise tox.exception.InterpreterNotFound(self.basepython) + if not info.version_info: + raise tox.exception.InvocationError( + 'Failed to get version_info for %s: %s' % (info.name, info.err)) if info.version_info < (2,6): raise tox.exception.UnsupportedInterpreter( "python2.5 is not supported anymore, sorry") |