aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-03-06 21:12:22 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-03-06 21:12:22 +0100
commita5c84f76643cce4193edec85367b11e1cca53a35 (patch)
tree0fa845fa96450ff3dd2d7b4ecfb6b83317f97465 /xtesting
parent876230db5ae1ec15c63291ebc9661f68db589162 (diff)
Add py3 support in samples
Change-Id: I402be2f5921577985218306161a6efe1b9d62a48 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting')
-rw-r--r--xtesting/samples/first.py4
-rw-r--r--xtesting/samples/second.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/xtesting/samples/first.py b/xtesting/samples/first.py
index 60de3dc6..b7ec8b6d 100644
--- a/xtesting/samples/first.py
+++ b/xtesting/samples/first.py
@@ -11,6 +11,8 @@
import time
+import six
+
from xtesting.core import testcase
@@ -18,7 +20,7 @@ class Test(testcase.TestCase):
def run(self, **kwargs):
self.start_time = time.time()
- print "Hello World"
+ six.print_("Hello World")
self.result = 100
self.stop_time = time.time()
return testcase.TestCase.EX_OK
diff --git a/xtesting/samples/second.py b/xtesting/samples/second.py
index 36e1dd33..5e1b105b 100644
--- a/xtesting/samples/second.py
+++ b/xtesting/samples/second.py
@@ -9,11 +9,13 @@
# pylint: disable=missing-docstring
+import six
+
from xtesting.core import feature
class Test(feature.Feature):
def execute(self, **kwargs):
- print "Hello World"
+ six.print_("Hello World")
return 0