-
Notifications
You must be signed in to change notification settings - Fork 16
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
bug introduced by commit c4276791713e47a76433122ddf7fdedb2a5a3d44 (pytest <=7.4.4) #677
Comments
The fix that works for me is #678 |
Hmm... My bad 🤔 In fact there seem to be no problem 😅 Sorry... Something remains in my code that is passing modules or something like this ! |
Could be an empty call to modules @mguijarr |
I identified the problem: the code in commit c427679 does not work with pytest <=7.4.4 ; the behaviour in pytest 8.0 is correct, this corresponds to this change: More specifically the line that was causing problem in 7.4.4 is: |
So, to keep compatibility with pytest <8 , I would recommend applying the proposed MR, if you want |
I am really sorry to say, a subtle bug has been introduced by this commit, and I didn't see it while doing the review 😫
At the moment,
modules
is always['']
which prevents Redis to start...I wonder how it could pass all tests ?
In anyways, the fix is super easy, in file
pytest_redis/config.py
instead of:The config key is empty string so it is enough to make the test as:
if (modules := get_conf_option("modules")):
Again, I apologize for not having seen it before.
The text was updated successfully, but these errors were encountered: