Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions nox/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def session_decorator(
download_python=download_python,
)

if isinstance(func, Func):
func = func.func

if py is not None and python is not None:
msg = (
"The py argument to nox.session is an alias for the python "
Expand Down
1 change: 1 addition & 0 deletions tests/resources/noxfile_pythons.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


@nox.session(python=["3.6"])
@nox.session(name="other", python=["3.6"])
@nox.parametrize("cheese", ["cheddar", "jack", "brie"])
def snack(unused_session, cheese):
print(f"Noms, {cheese} so good!")
Expand Down
Loading