aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_flowprobe.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-28 19:06:41 -0800
committerOle Trøan <otroan@employees.org>2018-12-05 12:08:46 +0000
commit661f91fe0a6bd87040408d45d116b63c0811f4f9 (patch)
tree200f7020cc44eb22ad05c477df23ace03bd06a90 /test/test_flowprobe.py
parenta6fe463c1cb67a52f06e519a514a47a9b6af8057 (diff)
VPP-1508: Python3 compatible print
Change-Id: I7d2597f2a9589f2463e213da6ca67b1b7593095e Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/test_flowprobe.py')
-rw-r--r--test/test_flowprobe.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_flowprobe.py b/test/test_flowprobe.py
index d2fd031777c..cd6fd1c1947 100644
--- a/test/test_flowprobe.py
+++ b/test/test_flowprobe.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-
+from __future__ import print_function
import binascii
import random
import socket
@@ -215,11 +215,11 @@ class MethodHolder(VppTestCase):
data_set={1: 'octets', 2: 'packets'},
ip_ver='v4'):
if self.debug_print:
- print capture[0].show()
+ print(capture[0].show())
if cflow.haslayer(Data):
data = decoder.decode_data_set(cflow.getlayer(Set))
if self.debug_print:
- print data
+ print(data)
if ip_ver == 'v4':
ip_layer = capture[0][IP]
else: