-
Notifications
You must be signed in to change notification settings - Fork 105
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
Pytest 'yield tests are deprecated, and scheduled to be removed in pytest 4.0' #34
Comments
Ohh thanks! Do you happen to know much about how py.test’s parameterization works so you could suggest a better implementation? I’ve dug into it a bit, but I wasn’t able to figure out to my satisfaction. On August 24, 2016 at 6:09:00 AM, Adam Chainz ([email protected]) wrote: This test leads to a pytest-warning on Pytest 3.0+: from nose_parameterized import parameterized @parameterized([ ============================================================== pytest-warning summary ============================================================== Maybe the strategy for use within pytest should be reworked. — -- |
I'm afraid I don't but I've done some pytest work so I'm a bit a familiar with its internals. |
Okay, update: it's super ugly, but I believe I have things working with pytest 4 in this branch: https://github.com/wolever/parameterized/tree/pytest4 There's still a bit of cleanup + documentation to do, and to double check that it will correctly handle edge cases, but I believe it should be okay. |
Cool, thanks for your maintenance :) |
Hey @wolever any chance you would be able to merge the pytest4 branch into master? |
Any update on this? It looks like parameterized doesn't work at all with the latest pytest. Decorated tests are marked with XFAIL and give warnings like |
Hey folks! It's been a minute, but pytest4 should be wo Please give it a try and let me know how it goes: See also: https://github.com/wolever/parameterized/pull/116/files If it all looks good, I'll merge + cut a new releas |
@wolever do you think this will be merged in to a new release? |
Hi, still waiting for adding support. There's pytest 6 already. |
I was also looking into why parameterized isn't working with Pytest. Then I found it's included in Pytest (6). See for more info https://docs.pytest.org/en/6.2.x/parametrize.html |
Any chance this can be merged? |
@wolever any chance the fix for this issue can be merged and a new release cut? in debian we have pytest7 and parametrized tests are failing when running them via pytest -- thanks! |
Hey hey! Bumping this one, just in case it's fallen behind the cracks |
Bumping again! Thanks |
This test leads to a pytest-warning on Pytest 3.0+:
Like:
Maybe the strategy for use within pytest should be reworked.
The text was updated successfully, but these errors were encountered: