aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/core/unit.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2021-06-03 06:16:49 +0000
committerGerrit Code Review <gerrit@opnfv.org>2021-06-03 06:16:49 +0000
commitec6921039af3b016eecc6e609f2554aea0f81e2c (patch)
tree4d2df62475e73a563e572180a13dec3b5e1b994e /xtesting/core/unit.py
parent454bef238020d8ac0e986807f34dfc140362b629 (diff)
parenta656fd764b0a608caaf198bfa9685a09a7eaca16 (diff)
Merge "Drop six"
Diffstat (limited to 'xtesting/core/unit.py')
-rw-r--r--xtesting/core/unit.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/xtesting/core/unit.py b/xtesting/core/unit.py
index 877cd073..9d549a2d 100644
--- a/xtesting/core/unit.py
+++ b/xtesting/core/unit.py
@@ -10,7 +10,7 @@
"""Define the parent class to run unittest.TestSuite as TestCase."""
from __future__ import division
-
+from io import BytesIO
import logging
import os
import shutil
@@ -19,7 +19,6 @@ import time
import unittest
from subunit.run import SubunitTestRunner
-import six
from xtesting.core import testcase
@@ -112,7 +111,7 @@ class Suite(testcase.TestCase):
self.start_time = time.time()
if not os.path.isdir(self.res_dir):
os.makedirs(self.res_dir)
- stream = six.BytesIO()
+ stream = BytesIO()
result = SubunitTestRunner(
stream=stream, verbosity=2).run(self.suite).decorated
self.generate_stats(stream)