aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core/unit.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-05-12 12:23:30 +0200
committerCédric Ollivier <ollivier.cedric@gmail.com>2019-05-23 21:05:18 +0200
commit1c477fb1cc0a6203eb5fc22b0f99ad262d959215 (patch)
tree72d39d21a84844005cfa7a9492a6c63b598170c6 /xtesting/core/unit.py
parent3eb87ae05f96cb9a687cac9b9d9c2b687a9ef302 (diff)
Stop setting utf-8 in decode/encode calls
It's the default value. Change-Id: I301f750cabc41a1564a700ae8d7328f195a4ae9b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 0d308f4db3434ae6f8147f0f452e5c542429e636)
Diffstat (limited to 'xtesting/core/unit.py')
-rw-r--r--xtesting/core/unit.py4
1 files changed, 2 insertions, 2 deletions
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