-
Notifications
You must be signed in to change notification settings - Fork 40
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
fails on decorated methods #58
Comments
The message is a bit misleading because it does call out to the class and then it filters by the method name. This is because Do you have unexpected execution of the parametrized test? Or does it execute and you are just worried about the message? Does If this is about the messaging, I could improve it a bit I think, to signal that it is working with a parametrized method. |
hey, thanks for the quick reply. and apologies if i wasn't clear: the point is that the test isn't parametrized at all, that's a regular pytest mark |
Ouch. Of course. We are being naive trying to detect this. I can get a fix so you can try it out in a bit, thanks for clarifying! |
thank you! |
@davidszotten can you try a7abab2 and tell me if that fixes this for you? I can then merge to master and hopefully close this ticket :) |
yes, this seems to fix the issue i don't quite follow why parametrized functions need special handling, from what i see they can be invoked just like non-parametrized ones |
This is because That is why we use Thanks for reporting this! Will push this to master |
This is the issue I reported a while back pytest-dev/pytest#649 Seems to have been fixed recently, but I have to supported older versions of |
ah yes. looks like it was fixed in 2.9.1 (2016-03-17) anyway. thanks for the fix for my current issue! |
Hi,
i have something like
when running
Pytest method
i getpy.test ==> Running test for parametrized method test_method
but it actually tries to run'path/to/file.py'::TestClass
The text was updated successfully, but these errors were encountered: