Closed ceamac closed 10 months ago
Odd, this doesn't fail on my own system (Arch) with ipv6 But maybe making the test more robust is the right thing to do.
Allright, made a different improvement to the test that should make it still use localhost but know about ipv6 8db91b617dd08508053e54dea2a781749a00ffc8 This should also fix your issue.
I can confirm the test passes. Thank you!
One test can fail because it assumes "localhost" is always IPv4. I have this in my
/etc/hosts
(debian system):And it resolves "localhost" to IPv6. For example:
tests/test_socketutil.py::TestSocketutil::testGetInterface FAILED
If I replace
addr = socketutil.get_interface("localhost")
withaddr = socketutil.get_interface("127.0.0.1")
, the test passes.