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
Ok I've really, really tried to fix this but I hit a wall in the process: Python HTTPServer doesn't support IPv6.
The tests at test_ignore.py uses a httpbin server created with pytest-httpbin which in turn creates a web server using HTTPServer, unfortunately HTTPServer creates the socket internally and we cannot easily manipulate it.
A feasible solution would be to create another fixture in pytest-httpbin (e.g. httpbin_ipv6) which listens on "::1" instead of "127.0.0.1" but HTTPServer have the protocol hardcoded (see here), maybe we can just change that property and it works.
Given that the workaround is as easy as adding "::1" to ignore_hosts I'm not sure it's worth the effort.
Thank you for looking into this. You may be right that just adding ::1 is the simplest workaround. (And probably add a note to the documentation to this effect, as it might not be obvious to others who hit this issue.)
When I'm trying to allow Redis localhost connections, I have to manually add "::1" to the list of allowed hosts, despite ignore_localhost
The text was updated successfully, but these errors were encountered: