You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2019/05/02 17:41:21 UTC
[impala] 02/03: IMPALA-8478: Fix test_provider.py Python 2.6
compatibility
This is an automated email from the ASF dual-hosted git repository.
tarmstrong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git
commit 909bf9320225c1e2dabb405ff591b4386548a9f4
Author: Fredy Wijaya <fw...@cloudera.com>
AuthorDate: Wed May 1 15:13:02 2019 -0700
IMPALA-8478: Fix test_provider.py Python 2.6 compatibility
This patch updates test_provider.py to work on Python 2.6 by using a
string formatting syntax that's available on both Python 2.6 and 2.7.
Testing:
- Ran test_provider.py on both Python 2.6 and 2.7
Change-Id: Ie7aa4a3149ae07261ecb64e84ba4fad5dd63f131
Reviewed-on: http://gerrit.cloudera.org:8080/13211
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
tests/authorization/test_provider.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/authorization/test_provider.py b/tests/authorization/test_provider.py
index 2e2e7a9..9c7ad2d 100644
--- a/tests/authorization/test_provider.py
+++ b/tests/authorization/test_provider.py
@@ -55,7 +55,7 @@ class TestAuthorizationProvider(CustomClusterTestSuite):
# parse log file for expected exception
assert_file_in_dir_contains(TestAuthorizationProvider.LOG_DIR,
"InternalException: Could not parse "
- "authorization_provider flag: {}"
+ "authorization_provider flag: {0}"
.format(TestAuthorizationProvider.BAD_FLAG))
def setup_method(self, method):