aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utilities_tests.py
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2020-02-17 12:45:31 +0000
committerJake Hunsaker <jhunsake@redhat.com>2020-02-26 10:16:49 -0500
commitf13dd77d50922857d391c305762df643d8a0fa44 (patch)
tree8dba281dac5b95267ec951ca26bd48e42cbd1f4f /tests/utilities_tests.py
parentcf363f563298bafa4dec2ff84a8fe867a8ed0ee7 (diff)
downloadsos-f13dd77d50922857d391c305762df643d8a0fa44.tar.gz
[tests] compare correct string types in test_nonexe_file()
Use a byte string instead of a regular string. Related: #1949 Signed-off-by: Bryn M. Reeves <bmr@redhat.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Diffstat (limited to 'tests/utilities_tests.py')
-rw-r--r--tests/utilities_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utilities_tests.py b/tests/utilities_tests.py
index 8e1514b0..f556b9a4 100644
--- a/tests/utilities_tests.py
+++ b/tests/utilities_tests.py
@@ -65,7 +65,7 @@ class ExecutableTest(unittest.TestCase):
path = os.path.join(TEST_DIR, 'utility_tests.py')
result = sos_get_command_output(path)
self.assertEquals(result['status'], 127)
- self.assertEquals(result['output'], "")
+ self.assertEquals(result['output'], b"")
def test_output_chdir(self):
cmd = "/bin/bash -c 'echo $PWD'"