From 7fb814d6197c581b0dfcc974a5b0a4646eab6cea Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Fri, 12 May 2017 18:51:26 -0400 Subject: Fix python3 error in repoquery Explicitly convert from bytes to string so that splitting the string is successful. This change works with python 2 as well. Closes #4182 --- roles/lib_utils/src/test/unit/test_repoquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/lib_utils/src/test/unit') diff --git a/roles/lib_utils/src/test/unit/test_repoquery.py b/roles/lib_utils/src/test/unit/test_repoquery.py index 9991ecd14..325f41dab 100755 --- a/roles/lib_utils/src/test/unit/test_repoquery.py +++ b/roles/lib_utils/src/test/unit/test_repoquery.py @@ -45,7 +45,7 @@ class RepoQueryTest(unittest.TestCase): # Return values of our mocked function call. These get returned once per call. mock_cmd.side_effect = [ - (0, '4.2.46|21.el7_3|x86_64|rhel-7-server-rpms|4.2.46-21.el7_3', valid_stderr), # first call to the mock + (0, b'4.2.46|21.el7_3|x86_64|rhel-7-server-rpms|4.2.46-21.el7_3', valid_stderr), # first call to the mock ] # Act -- cgit v1.2.3