Skip to content

Commit f188756

Browse files
committed
Change the order a 2nd time
1 parent 5fda8c9 commit f188756

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

conftest.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,7 @@ def pytest_generate_tests(metafunc: pytest.Metafunc) -> None:
282282
do_shuffle = metafunc.config.getoption("shuffle")
283283
test_cases = util.get_test_cases()
284284

285-
# 1. Apply the filter regexes (if desired):
286-
test_cases = [
287-
test_case
288-
for test_case in test_cases
289-
if all(regex.match(" ".join(test_case)) for regex in filter_regexes)
290-
]
291-
292-
# 2. Apply the selected number of threads:
285+
# 1. Apply the selected number of threads:
293286
test_cases = [
294287
(str(num), method, lines, func, term, preciter)
295288
for (
@@ -298,6 +291,13 @@ def pytest_generate_tests(metafunc: pytest.Metafunc) -> None:
298291
) in itertools.product(num_threads_list, test_cases)
299292
]
300293

294+
# 2. Apply the filter regexes (if desired):
295+
test_cases = [
296+
test_case
297+
for test_case in test_cases
298+
if all(regex.match(" ".join(test_case)) for regex in filter_regexes)
299+
]
300+
301301
# 3. Shuffle the tests (if desired):
302302
if do_shuffle:
303303
shuffle(test_cases)

0 commit comments

Comments
 (0)