]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
test_db_base_plugin_v2: Skip a few tests on some platforms
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Mon, 28 Sep 2015 05:48:55 +0000 (14:48 +0900)
committerYAMAMOTO Takashi <yamamoto@midokura.com>
Tue, 13 Oct 2015 00:32:01 +0000 (09:32 +0900)
commit2f6279e3e9a8561e74026ab3f3e639903014081b
treee24e6a5f31e396698d13ff1b60245302db5b591e
parent3da8a28315c6bf3e3ac347efb496e4490d37942e
test_db_base_plugin_v2: Skip a few tests on some platforms

netaddr (and its underlying libc inet_pton) produces different
representations of IPv4-compat addresses for different platforms.

Linux:
    >>> netaddr.IPAddress("::2")
    IPAddress('::2')
    >>>

OSX:
    >>> netaddr.IPAddress("::2")
    IPAddress('::0.0.0.2')
    >>>

As our API assumes Linux's way, skip affected test cases on
the other platforms.

Related-Bug: #1484837
Change-Id: I89e1822bb92dfcf8772bba1a3edf908c89550119
neutron/tests/tools.py
neutron/tests/unit/db/test_db_base_plugin_v2.py