aboutsummaryrefslogtreecommitdiffstats
path: root/tests/plugin_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/plugin_tests.py')
-rw-r--r--tests/plugin_tests.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/plugin_tests.py b/tests/plugin_tests.py
index 207cb724..c88534d8 100644
--- a/tests/plugin_tests.py
+++ b/tests/plugin_tests.py
@@ -10,12 +10,7 @@ import os
import tempfile
import shutil
-# PYCOMPAT
-import six
-try:
- from StringIO import StringIO
-except:
- from io import StringIO
+from io import StringIO
from sos.report.plugins import Plugin, regex_findall, _mangle_command
from sos.archive import TarFileArchive
@@ -29,7 +24,7 @@ def j(filename):
def create_file(size, dir=None):
f = tempfile.NamedTemporaryFile(delete=False, dir=dir)
- f.write(six.b("*" * size * 1024 * 1024))
+ f.write(b"*" * size * 1024 * 1024)
f.flush()
f.close()
return f.name