summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tox/_config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tox/_config.py b/tox/_config.py
index 26603c9..4882055 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")