Skip to content

Conversation

@bluetech
Copy link
Member

@bluetech bluetech commented Feb 6, 2022

This fixes #9610. Test case by @jiridanek.

pytest 7.0.0 (unintentionally) changed UnitTestFunction.obj's behavior
to match Function.obj. That is probably a good thing to have, however
it evidently causes some regressions as described in the issue, so
restore the previous behavior for now. In the future we might want to
make this change again, but with proper consideration.

@bluetech bluetech added the needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch label Feb 6, 2022
@bluetech
Copy link
Member Author

bluetech commented Feb 6, 2022

Hmm no idea about the test failures, I don't see them locally. Will look at it later.

@The-Compiler
Copy link
Member

I saw the same test issues in #9628. Looks like something broke recently somehow, though no idea what. I opened #9629 to track this.

…n bound method

This fixes pytest-dev#9610.

pytest 7.0.0 (unintentionally) changed `UnitTestFunction.obj`'s' behavior
to match `Function.obj`. That is probably a good thing to have, however
it evidently causes some regressions as described in the issue, so
restore the previous behavior for now. In the future we might want to
make this change again, but with proper consideration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

INTERNALERROR> TypeError: __init__() missing 1 required positional argument: 'test_method'

3 participants