summaryrefslogtreecommitdiff
path: root/tox/_config.py
diff options
context:
space:
mode:
authorholger krekel <holger@merlinux.eu>2014-09-23 16:36:38 +0200
committerholger krekel <holger@merlinux.eu>2014-09-23 16:36:38 +0200
commit6389bad6013edc4bacf7aebecc96cbf511c463e0 (patch)
tree713357c31ea8e42303aeb3fe1e669a05a94f715d /tox/_config.py
parentecc35af9334c548a34db9433bf7f9f112fcdf5bf (diff)
parentf9388e850a0ed84ee5dbda61ef68aa4a01510b76 (diff)
downloadtox-git-6389bad6013edc4bacf7aebecc96cbf511c463e0.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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox/_config.py b/tox/_config.py
index 07f23651..d0f8c3e5 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")