]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Python 3: fix test_ovs_tunnel
authorCyril Roelandt <cyril@redhat.com>
Tue, 4 Aug 2015 12:27:48 +0000 (14:27 +0200)
committerCyril Roelandt <cyril@redhat.com>
Tue, 4 Aug 2015 12:27:48 +0000 (14:27 +0200)
commit59531d9d11c3e7aed7f41f85dd48ef8567b82e37
treedced1d9ccac977f613b3b06d93afd3173f258b82
parent8452ded4df8acb69447a587d2ed7ddefb372fad4
Python 3: fix test_ovs_tunnel

In Python 3, this happens:

>>> d = {}
>>> a = d.values()
>>> b = d.values()
>>> a == b
False

And anyway we're not really willing to pass dict_values objects around; we are
expecting lists, just like in Python 2, so let's just do the conversion.

Change-Id: I62ef32d50ba5ce64a653ffc62ba18c53cab9b15c
Blueprint: neutron-python3
neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py
neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/test_ovs_tunnel.py