Skip to content

Fix overriding of fixtures with parametrization. #983

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

Merged
merged 2 commits into from
Aug 31, 2015
Merged

Fix overriding of fixtures with parametrization. #983

merged 2 commits into from
Aug 31, 2015

Conversation

The-Compiler
Copy link
Member

Fixes #979, see #926.

/cc @untitaker

def fixt(request):
return request.param

@pytest.mark.parametrize(%s, [(3, 'x'), (4, 'x')])
Copy link
Member

Choose a reason for hiding this comment

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

pls use .format for string formatting

Copy link
Member Author

Choose a reason for hiding this comment

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

.format isn't used anywhere in this file, and %-formatting is used 23 times (which is why I used that) - do you really want to introduce that inconsistency?

Copy link
Member

Choose a reason for hiding this comment

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

valid point, agreed
ignore this

bubenkoff added a commit that referenced this pull request Aug 31, 2015
Fix overriding of fixtures with parametrization.
@bubenkoff bubenkoff merged commit 18d1757 into pytest-dev:master Aug 31, 2015
@bubenkoff
Copy link
Member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants