]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
scripts/test: drop six.ensure_str()
authorKefu Chai <kchai@redhat.com>
Wed, 17 Jun 2020 09:19:38 +0000 (17:19 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 17 Jun 2020 14:19:20 +0000 (22:19 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/test/script.py

index db88f8f5eef5e7b446bbdd942fb55061b6854e8a..fdabd1b5538412e517919d77caff7ecd86627989 100644 (file)
@@ -1,6 +1,5 @@
 import subprocess
 from pytest import raises
-from six import ensure_str
 
 
 class Script(object):
@@ -8,7 +7,7 @@ class Script(object):
 
     def test_help(self):
         args = (self.script_name, '--help')
-        out = ensure_str(subprocess.check_output(args))
+        out = subprocess.check_output(args).decode()
         assert out.startswith('usage')
 
     def test_invalid(self):