Skip to content

Commit

Permalink
Give more time to test_tarfile core python test
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Feb 18, 2025
1 parent 0abd74f commit 7798206
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/tests/python_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@
- test_syslog
- test_tabnanny
- test_tarfile:
timeout: 60
skip:
- test_sly_relative0
- test_tcl
Expand Down
15 changes: 11 additions & 4 deletions src/tests/test_core_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,18 @@ def get_tests() -> list[tuple[str, dict[str, Any]]]:
def pytest_generate_tests(metafunc):
if "main_test" in metafunc.fixturenames:
tests = get_tests()
params = []
for t in tests:
if timeout := t[1].get("driver_timeout"):
marks = [
pytest.mark.requires_dynamic_linking,
pytest.mark.driver_timeout(timeout),
]
else:
marks = [pytest.mark.requires_dynamic_linking]
params.append(pytest.param(t, marks=marks))
metafunc.parametrize(
"main_test",
[
pytest.param(t, marks=pytest.mark.requires_dynamic_linking)
for t in tests
],
params,
ids=[t[0] for t in tests],
)

0 comments on commit 7798206

Please sign in to comment.