test_create_with_ipv6_address: enable IPv6 by robmry · Pull Request #3373 · docker/docker-py (original) (raw)
Similar to:
test_create_with_ipv6_address creates a network with IPv6 IPAM, and checks it's possible to start a container with a configured IPv6 address ... but it doesn't enable IPv6 in the network.
The test passes because the daemon checks the configured IPv6 address is in a configured subnet - and it is, but the IPv6 subnet wasn't used. So, the IPv6 address isn't assigned to an interface in the container, it just appears in its config.
moby/moby#51577 updates the daemon to check the network is using a subnet containing the configured address - so this test will fail.