2 new commits in tox: https://bitbucket.org/hpk42/tox/commits/085b6e2547b3/ Changeset: 085b6e2547b3 User: flub Date: 2014-09-08 21:24:36+00:00 Summary: Better error reporting for a bad interpreter
When an interpreter's binary exists but no valid version_info is extracted the error message right now simply says <2.5 is not supported which is not very helpful. This tries to improve the error reporting for this case. Affected #: 1 file diff -r 413683ebbed09f1befde1219f3d02049b9818338 -r 085b6e2547b393671e445739a5d693041668a8b2 tox/_config.py --- a/tox/_config.py +++ b/tox/_config.py @@ -184,6 +184,9 @@ 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") https://bitbucket.org/hpk42/tox/commits/9dd51ef1cdbb/ Changeset: 9dd51ef1cdbb User: hpk42 Date: 2014-09-23 14:36:38+00:00 Summary: Merged in flub/tox (pull request #119) Better error reporting for a bad interpreter Affected #: 1 file diff -r 35e3076d3c770b0180da25bedb66a21e82b75994 -r 9dd51ef1cdbb000809b509dffd79288453155e85 tox/_config.py --- a/tox/_config.py +++ b/tox/_config.py @@ -184,6 +184,9 @@ 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") Repository URL: https://bitbucket.org/hpk42/tox/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit