aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_object.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-25 12:47:04 -0800
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-25 12:47:04 -0800
commit00671cf9cfbcd9ed25d79712bf01d29cb8787bf2 (patch)
treed303607afac92b861515679af205725a31321cb1 /test/vpp_object.py
parent61e63bf4e14eddebdd99814cf2633c2e638cd21c (diff)
VPP-1508 python3 tests: python3 repr.
Use six.reprlib. Uses repr for python 2 and reprlib for python 3. Change-Id: Ia343a492d533bd511ed57166381e10a37e452d36 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/vpp_object.py')
-rw-r--r--test/vpp_object.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/vpp_object.py b/test/vpp_object.py
index 088cc39ce0a..8fe549e74ff 100644
--- a/test/vpp_object.py
+++ b/test/vpp_object.py
@@ -2,6 +2,8 @@
from abc import ABCMeta, abstractmethod
+import six
+
class VppObject(object):
""" Abstract vpp object """
@@ -81,6 +83,6 @@ class VppObjectRegistry(object):
if failed:
logger.error("REG: Couldn't remove configuration for object(s):")
for obj in failed:
- logger.error(repr(obj))
+ logger.error(six.reprlib(obj))
raise Exception("Couldn't remove configuration for object(s): %s" %
(", ".join(str(x) for x in failed)))