Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip sessions with missing interpreters #140

Merged
merged 3 commits into from
Sep 24, 2018
Merged

Conversation

theacodes
Copy link
Collaborator

Note: This changes Nox's behavior. Previously, missing interpreters would cause a failed session. Now they just cause a warning. The previous behavior can be used via --error-on-missing-interpreters.

Replaces #138
Closes #136
Releated #93

docs/usage.rst Show resolved Hide resolved
nox/sessions.py Show resolved Hide resolved
nox/sessions.py Show resolved Hide resolved
nox/sessions.py Show resolved Hide resolved
@@ -31,6 +31,12 @@
_SYSTEM = platform.system()


class InterpreterNotFound(EnvironmentError):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ python2.7 -c 'print(EnvironmentError)'
<type 'exceptions.EnvironmentError'>
$ python3.7 -c 'print(EnvironmentError)'
<class 'OSError'>

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, good catch. (OSError is fine, but let's use the non-deprecated name).

nox/virtualenv.py Show resolved Hide resolved
nox/virtualenv.py Show resolved Hide resolved
nox/virtualenv.py Show resolved Hide resolved
@theacodes theacodes merged commit b6bbbc9 into master Sep 24, 2018
@theacodes theacodes deleted the skip-missing-interpreter branch September 24, 2018 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants