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

fixtures: deprecate pytest._fillfuncargs function #7117

Merged
merged 2 commits into from Apr 24, 2020

Conversation

bluetech
Copy link
Member

This function is exposed and kept alive for the oejskit plugin which is abandoned and no longer works with recent plugins, so let's prepare to completely remove it.

Replaces #7097 with just the deprecation.

This function is exposed and kept alive for the oejskit plugin which is
abandoned and no longer works with recent plugins, so let's prepare to
completely remove it.
@@ -1535,7 +1535,7 @@ def setup(self) -> None:
if isinstance(self.parent, Instance):
self.parent.newinstance()
self.obj = self._getobj()
fixtures.fillfixtures(self)
self._request._fillfixtures()
Copy link
Member Author

Choose a reason for hiding this comment

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

This change shouldn't matter I think because the class here is Function which always has _request defined, so fixtures.fillfixtures does nothing for it except calling self._request._fillfixtures().

Copy link
Member

@RonnyPfannschmidt RonnyPfannschmidt left a comment

Choose a reason for hiding this comment

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

looks lovely

Co-Authored-By: Ronny Pfannschmidt <opensource@ronnypfannschmidt.de>
@bluetech bluetech merged commit 9828cfa into pytest-dev:master Apr 24, 2020
@bluetech bluetech deleted the deprecate-fillfuncargs-v2 branch June 17, 2020 14:57
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.

None yet

2 participants