Skip to content

Commit

Permalink
use lists instead of sets for iteration order
Browse files Browse the repository at this point in the history
Signed-off-by: Achal Shah <[email protected]>
  • Loading branch information
achals committed Sep 16, 2021
1 parent d04ee09 commit 582087d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def pytest_collection_modifyitems(config, items: List[Item]):
should_run_integration = config.getoption("--integration") is True
should_run_benchmark = config.getoption("--benchmark") is True

integration_tests = {t for t in items if "integration" in t.keywords}
integration_tests = [t for t in items if "integration" in t.keywords]
if not should_run_integration:
for t in integration_tests:
items.remove(t)
Expand All @@ -67,7 +67,7 @@ def pytest_collection_modifyitems(config, items: List[Item]):
for t in integration_tests:
items.append(t)

benchmark_tests = {t for t in items if "benchmark" in t.keywords}
benchmark_tests = [t for t in items if "benchmark" in t.keywords]
if not should_run_benchmark:
for t in benchmark_tests:
items.remove(t)
Expand Down

0 comments on commit 582087d

Please sign in to comment.