diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2019-03-06 08:23:58 -0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-03-07 22:29:00 +0000 |
commit | ea2450fa2d1e8ba0295ea9861a404796100dad1e (patch) | |
tree | abc11c27a65c8af6f839ea0af73cac5560933c3b /test/test_acl_plugin_macip.py | |
parent | 4a4cea02ef82793232cab4d878baca5cf0134966 (diff) |
VPP-1508: Python3 tests. Explicitly specify string formatting.
.format() doesn't understand what to do with binary values by default.
Specify that we expect coersion to string.
Change-Id: Ic4b697f70852124dc85ab231f76b7934d0d71f4d
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/test_acl_plugin_macip.py')
-rw-r--r-- | test/test_acl_plugin_macip.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_acl_plugin_macip.py b/test/test_acl_plugin_macip.py index f277076aaab..d2d684abc11 100644 --- a/test/test_acl_plugin_macip.py +++ b/test/test_acl_plugin_macip.py @@ -237,7 +237,8 @@ class MethodHolder(VppTestCase): mac = ':'.join(re.findall('..', '{:02x}'.format( src_mac))[:3])+":00:00:00" else: - mac = ':'.join(re.findall('..', '{:02x}'.format(src_mac))) + mac = ':'.join(re.findall( + '..', '{:02x}'.format(src_mac))) if ip_type == self.EXACT_IP: ip4[3] = random.randint(100, 200) |