use print() - import print_function - should be fine for both py2 and py3
[nepi.git] / test / resources / linux / udptunnel.py
index 8d025ce..2963f90 100755 (executable)
@@ -17,6 +17,8 @@
 #
 # Author: Alina Quereilhac <alina.quereilhac@inria.fr>
 
+from __future__ import print_function
+
 from nepi.execution.ec import ExperimentController 
 
 from test_utils import skipIfAnyNotAliveWithIdentity
@@ -72,7 +74,7 @@ class LinuxUdpTunnelTestCase(unittest.TestCase):
         ec.wait_finished(app)
 
         ping = ec.trace(app, "stdout")
-        print ping
+        print(ping)
         expected = """3 packets transmitted, 3 received, 0% packet loss"""
         self.assertTrue(ping.find(expected) > -1)
         
@@ -126,7 +128,7 @@ class LinuxUdpTunnelTestCase(unittest.TestCase):
 
         ping = ec.trace(app, "stdout")
 
-        print ping
+        print(ping)
         expected = """3 packets transmitted, 3 received, 0% packet loss"""
         self.assertTrue(ping.find(expected) > -1)