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

Reintroduce default value for ignore_args argument of FixtureManager.getfixtureclosure #11888

Closed

Conversation

nicoddemus
Copy link
Member

Fix #11868

@nicoddemus nicoddemus force-pushed the getfixtureclosure-default branch 2 times, most recently from 034f4e3 to ca37901 Compare January 30, 2024 00:22
@YannickJadoul
Copy link

YannickJadoul commented Jan 30, 2024

If I read this correctly, the order of arguments also changed in #11416.

Not my decision as to whether you want to make this backwards-compatible again with previous versions, but if you want to, the current PR likely isn't enough?

@bluetech
Copy link
Member

@YannickJadoul you're right. I think the function changed too much (also in its semantics) that it's not really possible to maintain backwards compat for it. The situation with pytest-lazyfixtures is unfortunate since it seems it's abandoned without any way to transfer ownership. It probably needs a fork...

Co-authored-by: Ran Benita <ran@unusedvar.com>
@nicoddemus
Copy link
Member Author

@YannickJadoul you're right. I think the function changed too much (also in its semantics) that it's not really possible to maintain backwards compat for it.

In that case, it is probably better to not merge this at all, as will only add to the confusion?

@bluetech
Copy link
Member

Yes, I think we shouldn't merge it.

@YannickJadoul
Copy link

The situation with pytest-lazyfixtures is unfortunate since it seems it's abandoned without any way to transfer ownership. It probably needs a fork...

Agreed, yes! That's why I explicitly stepped back from saying I'd like to see this change.
pytest-lazyfixtures will need more than just this PR, so I wouldn't consider it as a good reason to merge it.

@nicoddemus
Copy link
Member Author

Thanks folks, closing this then. 👍

@nicoddemus nicoddemus closed this Jan 30, 2024
@nicoddemus nicoddemus deleted the getfixtureclosure-default branch January 30, 2024 13:06
@RonnyPfannschmidt
Copy link
Member

should we consider integrating lazy-fixtures in core - its in line with the fixture configuration details i have in mind

i already tried to reach out to the maintainer a while back and got no reply

@YannickJadoul
Copy link

should we consider integrating lazy-fixtures in core - its in line with the fixture configuration details i have in mind

i already tried to reach out to the maintainer a while back and got no reply

I don't have massive amounts of time, but if this isn't super urgent and can take e.g. a few weeks, I would be interested in helping out here!
And maybe @youtux as well? (see TvoroG/pytest-lazy-fixture#63)

In the end, lazy-fixures is not a massive amount of code. I'd just need to look into all the previous issues and discussions had before, and get some input on whether the current implementation is still the best way forward or whether there's a more stable way of implementing it.

@RonnyPfannschmidt
Copy link
Member

if pytest introduces a native object to statically request the request for another fixture as parameter (with or without a reconfigrue of the fixture parameters) implementation may look different

@nicoddemus
Copy link
Member Author

@RonnyPfannschmidt @YannickJadoul there's a detailed topic already in #11532, I suggest to move the discussion over there.

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.

Latest 8.0.0 is breaking on 3.8+
5 participants