aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting
diff options
context:
space:
mode:
Diffstat (limited to 'xtesting')
-rw-r--r--xtesting/core/feature.py4
-rw-r--r--xtesting/core/unit.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/xtesting/core/feature.py b/xtesting/core/feature.py
index f28e720c..6d5d7410 100644
--- a/xtesting/core/feature.py
+++ b/xtesting/core/feature.py
@@ -113,8 +113,8 @@ class BashFeature(Feature):
stderr=subprocess.STDOUT)
for line in iter(process.stdout.readline, b''):
if console:
- sys.stdout.write(line.decode("utf-8"))
- f_stdout.write(line.decode("utf-8"))
+ sys.stdout.write(line.decode())
+ f_stdout.write(line.decode())
process.wait()
with open(self.result_file, 'r') as f_stdin:
self.__logger.debug("$ %s\n%s", cmd, f_stdin.read().rstrip())
diff --git a/xtesting/core/unit.py b/xtesting/core/unit.py
index 774411a4..8e603ce6 100644
--- a/xtesting/core/unit.py
+++ b/xtesting/core/unit.py
@@ -48,7 +48,7 @@ class Suite(testcase.TestCase):
stats = subprocess.Popen(
['subunit-stats'], stdin=subprocess.PIPE, stdout=subprocess.PIPE)
output, _ = stats.communicate(stream.read())
- cls.__logger.info("\n\n%s", output.decode("utf-8"))
+ cls.__logger.info("\n\n%s", output.decode())
def generate_xunit(self, stream):
"""Generate junit report from subunit stream
@@ -62,7 +62,7 @@ class Suite(testcase.TestCase):
['subunit2junitxml'], stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
output, _ = stats.communicate(stream.read())
- xml.write(output.decode("utf-8"))
+ xml.write(output.decode())
def generate_html(self, stream):
"""Generate html report from subunit stream