Skip to content

Commit

Permalink
Update nox/manifest.py
Browse files Browse the repository at this point in the history
Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
  • Loading branch information
crwilcox and cjolowicz authored Nov 24, 2020
1 parent 974e222 commit 169ede8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nox/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,11 @@ def make_session(
extra_pythons = self._config.extra_pythons # type: List[str]
if isinstance(func.python, (list, tuple, set)):
func.python = list({*func.python, *extra_pythons})
elif not multi and func.python:
elif not multi and func.python is not False:
# if this is multi, but there is only a single interpreter, it
# is the reentrant case. The extra_python interpreter shouldn't
# be added in that case. If func.python is False, the session
# has no backend; treat None and the empty string equivalently.
# Otherwise, add the extra specified python.
# has no backend. Otherwise, add the extra specified python.
assert isinstance(func.python, str)
func.python = list({func.python, *extra_pythons})

Expand Down

0 comments on commit 169ede8

Please sign in to comment.