[
https://issues.apache.org/jira/browse/IMPALA-8478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16831812#comment-16831812
]
ASF subversion and git services commented on IMPALA-8478:
---------------------------------------------------------
Commit 909bf9320225c1e2dabb405ff591b4386548a9f4 in impala's branch
refs/heads/master from Fredy Wijaya
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=909bf93 ]
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 <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> tests/authorization/test_provider.py breaks on CentOS 6 with Python 2.7-ism
> ---------------------------------------------------------------------------
>
> Key: IMPALA-8478
> URL: https://issues.apache.org/jira/browse/IMPALA-8478
> Project: IMPALA
> Issue Type: Bug
> Reporter: Laszlo Gaal
> Assignee: Fredy Wijaya
> Priority: Blocker
> Labels: broken-build
> Fix For: Impala 3.3.0
>
>
> tests/authorization/test_provider.py contains a format string variant not
> available on Python 2.6.x, which is the default Python version on CentOS 6.
> This breaks the test on CentOS 6:
> {code}
> 20:31:53 =========================== short test summary info
> ============================
> 20:31:53 XFAIL
> custom_cluster/test_alloc_fail.py::TestAllocFail::()::test_alloc_fail_update[protocol:
> beeswax | exec_option: {'batch_size': 0, 'num_nodes': 0,
> 'disable_codegen_rows_threshold': 0, 'disable_codegen': False,
> 'abort_on_error': 1, 'exec_single_node_rows_threshold': 0} | table_format:
> text/none]
> 20:31:53 IMPALA-2925: the execution is not deterministic so some tests
> sometimes don't fail as expected
> 20:31:53 FAIL
> authorization/test_provider.py::TestAuthorizationProvider::()::test_invalid_provider_flag
> 20:31:53 =================================== FAILURES
> ===================================
> 20:31:53 _____________ TestAuthorizationProvider.test_invalid_provider_flag
> _____________
> 20:31:53 authorization/test_provider.py:59: in test_invalid_provider_flag
> 20:31:53 .format(TestAuthorizationProvider.BAD_FLAG))
> 20:31:53 E ValueError: zero length field name in format
> 20:31:53 ---------------------------- Captured stderr setup
> -----------------------------
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]