From b12e0f01fc26e203e35a10c2dcedaae918b9b2eb Mon Sep 17 00:00:00 2001 From: Jakub Libosvar Date: Wed, 21 Jun 2017 13:53:31 +0000 Subject: [PATCH] functional: Replace unicode() with six.u() unicode() is not present in Python 3 Change-Id: I1a6487d5c46884bf95704e3fd726e78c1dde9517 --- neutron/tests/functional/agent/l3/test_dvr_router.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/tests/functional/agent/l3/test_dvr_router.py b/neutron/tests/functional/agent/l3/test_dvr_router.py index 4af12af4645..21311bb632b 100644 --- a/neutron/tests/functional/agent/l3/test_dvr_router.py +++ b/neutron/tests/functional/agent/l3/test_dvr_router.py @@ -1287,11 +1287,11 @@ class TestDvrRouter(framework.L3AgentTestFramework): str(net_addr_2) + '/' + str(fixed_ips_2[0]['prefixlen'])) expected_routes = [{'dev': fpr_device_name, - 'cidr': unicode(route_cidr_1), + 'cidr': six.u(route_cidr_1), 'via': str(rtr_2_fip.ip), 'table': 'main'}, {'dev': fpr_device_name, - 'cidr': unicode(route_cidr_2), + 'cidr': six.u(route_cidr_2), 'via': str(rtr_2_fip.ip), 'table': 'main'}] # Comparing the static routes for both internal interfaces on the