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

Implemented solution to issue #441 and added test cases #461

Closed
wants to merge 4 commits into from

Conversation

vishutupili
Copy link

This PR is addressing issue #441

We have implemented the suggested change to the while loop condition.

Additionally, we have added test cases to test the order of hooks called to make sure that changing the while loop condition did not change the correct behaviour that the previous code was producing (specifically when hookwrapper and wrapper are set to False).

@vishutupili vishutupili changed the title Implemented #441 and added test cases Implemented Issue #441 and added test cases Dec 14, 2023
@vishutupili vishutupili changed the title Implemented Issue #441 and added test cases Implemented solution to issue #441 and added test cases Dec 14, 2023
i >= 0
and hookimpls[i].tryfirst
and not (hookimpls[i].hookwrapper or hookimpls[i].wrapper)
while i >= 0 and (
Copy link
Member

Choose a reason for hiding this comment

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

while just taking a look at line 531 it seems that #441 was incomplete as the specifically chosen arguments in the body of the method currently exclude the desired behavior as they intentional

cc @smarie

Copy link

Choose a reason for hiding this comment

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

@RonnyPfannschmidt not sure I get your point here. Do you mean that additional tests should be implemented in this PR to cover another situation ?

Copy link
Member

Choose a reason for hiding this comment

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

No,what I meant is that based on the preceding code, the desired feature was intentionally unsupported and we need to do some design work to ensure its supported correctly instead of just enabling it

@bluetech
Copy link
Member

Hi @vishutupili, the tests you added are passing also in current main. Can you add some tests the fail before the change and pass after?

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.

5 participants