IMPALA-6760: Fix for py2.7-ism in run-tests.py. A set-literal snuck into run-tests.py in a recent change. We wish to avoid these to be able to run on py2.6.
Change-Id: I81928d1880a493b91abb13b3a8149568c9789f66 Reviewed-on: http://gerrit.cloudera.org:8080/9843 Reviewed-by: Philip Zeyliger <[email protected]> Tested-by: Philip Zeyliger <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/impala/repo Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/1c4775d9 Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/1c4775d9 Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/1c4775d9 Branch: refs/heads/master Commit: 1c4775d92abab73f01cc967967aebeacc4ead5de Parents: 408ee4d Author: Philip Zeyliger <[email protected]> Authored: Wed Mar 28 15:15:42 2018 -0700 Committer: Philip Zeyliger <[email protected]> Committed: Thu Mar 29 15:35:19 2018 +0000 ---------------------------------------------------------------------- tests/run-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/impala/blob/1c4775d9/tests/run-tests.py ---------------------------------------------------------------------- diff --git a/tests/run-tests.py b/tests/run-tests.py index 6967b17..9552d0d 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -80,7 +80,7 @@ class TestCounterPlugin(object): # https://docs.pytest.org/en/2.9.2/writing_plugins.html#_pytest.hookspec.pytest_collection_modifyitems def pytest_collection_modifyitems(self, items): for item in items: - self.tests_collected.update({item.nodeid}) + self.tests_collected.add(item.nodeid) # link to pytest_runtest_logreport # https://docs.pytest.org/en/2.9.2/_modules/_pytest/hookspec.html#pytest_runtest_logreport
