You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@RonnyPfannschmidt - thanks, that worked exactly as you wrote, I'll probably merge this tomorrow if nobody objects. Sorry about the long delay - I wanted to finish a minor issue in another project first, but that took unexpectedly long.
One question though: I used pytest_runtest_logreport with tryfirst. If anyone else uses the same hook also with tryfirst and wants to access the filesystem in that hook, that might or might not work, depending on the order the hooks are called (if I understand that correctly). Is this something I just have to live with (as it is unlikely to happen), or is there a canocical way to handle this?
Currently there's no explicit order, I recommend a tryfirst hook wrapper as starting point plus logged a issue that's dependents on The pluggy issues about more explicit ordering
There are some issues in pluggy related to ordering, the first being this issue.
This is a reminder to use the improved mechanism to ensure that pyfakefs is paused before other implementer of the reporting hook are involved, if such a mechanism will be added.
The text was updated successfully, but these errors were encountered:
I have been following the development of pluggy for a while now, and I don't see that pluggy will add more control in that regard that will help with this issue (and I don't see how that could be done sensibly).
I think the current state is sufficient - the possibility that another plugin using tryfirst that would actually clash with pyfakefs is slim, and I will deal with it if it really happens.
Closing.
This is a spin-off of #904. From the comments:
mrbean-bremen commented Nov 12, 2023
@RonnyPfannschmidt - thanks, that worked exactly as you wrote, I'll probably merge this tomorrow if nobody objects. Sorry about the long delay - I wanted to finish a minor issue in another project first, but that took unexpectedly long.
One question though: I used pytest_runtest_logreport with tryfirst. If anyone else uses the same hook also with tryfirst and wants to access the filesystem in that hook, that might or might not work, depending on the order the hooks are called (if I understand that correctly). Is this something I just have to live with (as it is unlikely to happen), or is there a canocical way to handle this?
RonnyPfannschmidt commented Nov 12, 2023
Currently there's no explicit order, I recommend a tryfirst hook wrapper as starting point plus logged a issue that's dependents on The pluggy issues about more explicit ordering
There are some issues in pluggy related to ordering, the first being this issue.
This is a reminder to use the improved mechanism to ensure that pyfakefs is paused before other implementer of the reporting hook are involved, if such a mechanism will be added.
The text was updated successfully, but these errors were encountered: