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

Forward additional arguments to parametrized sessions #270

Merged
merged 10 commits into from
Feb 6, 2021
Merged

Conversation

cjolowicz
Copy link
Owner

@cjolowicz cjolowicz commented Feb 6, 2021

The session decorator introduced in 0.8 does not work with parametrized session functions, leading to errors similar to the following:

nox > Session test(n=2) raised exception TypeError("wrapper() got an unexpected keyword argument 'n'")

This PR fixes the support for parametrized sessions by forwarding any additional arguments to the session function.

@cjolowicz cjolowicz added the bug Something isn't working label Feb 6, 2021
@cjolowicz cjolowicz merged commit a259d81 into master Feb 6, 2021
@cjolowicz cjolowicz deleted the parametrize branch February 6, 2021 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant