aboutsummaryrefslogtreecommitdiffstats
path: root/tests/archive_tests.py
diff options
context:
space:
mode:
authorBryan Quigley <bryan.quigley@canonical.com>2020-04-08 13:13:25 -0700
committerBryan Quigley <bryan.quigley@canonical.com>2020-04-09 11:22:44 -0700
commit33bcb9a5de0d544abb482e06fc363e57507924b2 (patch)
tree1547bb4fa6add19180d26a3b8597fa34c1b1d6ef /tests/archive_tests.py
parent902f1269500808c1a780eec46e2dc4f34be876fd (diff)
downloadsos-33bcb9a5de0d544abb482e06fc363e57507924b2.tar.gz
[global] Drop use of python six and other 2.X bits
Resolves: #2006 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
Diffstat (limited to 'tests/archive_tests.py')
-rw-r--r--tests/archive_tests.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/archive_tests.py b/tests/archive_tests.py
index 8257997d..d890d12f 100644
--- a/tests/archive_tests.py
+++ b/tests/archive_tests.py
@@ -16,9 +16,6 @@ from sos.archive import TarFileArchive
from sos.utilities import tail
from sos.policies import Policy
-# PYCOMPAT
-import six
-
class TarFileArchiveTest(unittest.TestCase):
@@ -56,7 +53,7 @@ class TarFileArchiveTest(unittest.TestCase):
def test_add_string_from_file(self):
self.copy_strings = []
testfile = tempfile.NamedTemporaryFile(dir=self.tmpdir, delete=False)
- testfile.write(six.b("*" * 1000))
+ testfile.write(b"*" * 1000)
testfile.flush()
testfile.close()