mirror of
https://github.com/apache/impala.git
synced 2026-02-03 09:00:39 -05:00
pytest.config global variable has been removed since pytest 5.0. https://docs.pytest.org/en/stable/deprecations.html#pytest-config-global This patch remove direct reference to pytest.config. Instead, it hook pytest config object to ImpalaTestClusterProperties singleton at pytest_configure() method at conftest.py. Added pytest_config() classmethod in BaseTestSuite as a shortcut to access ImpalaTestClusterProperties.get_instance().pytest_config(). Testing: - Pass core tests. Change-Id: Ieb09a9c8c1f474c355188b46a0ea913da6c2a38b Reviewed-on: http://gerrit.cloudera.org:8080/23840 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>