Skip to content

Commit bd3a3be

Browse files
[PR #9787/d1eeceab backport][3.11] Fix flakey test_import_time with Python 3.13 (#9792)
1 parent 5cf39d9 commit bd3a3be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_imports.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ def test_web___all__(pytester: pytest.Pytester) -> None:
3434

3535
_TARGET_TIMINGS_BY_PYTHON_VERSION = {
3636
"3.12": (
37-
# 3.12 is expected to be a bit slower due to performance trade-offs,
37+
# 3.12+ is expected to be a bit slower due to performance trade-offs,
3838
# and even slower under pytest-xdist, especially in CI
3939
_XDIST_WORKER_COUNT * 100 * (1 if _IS_CI_ENV else 1.53)
4040
if _IS_XDIST_RUN
4141
else 250
4242
),
4343
}
44+
_TARGET_TIMINGS_BY_PYTHON_VERSION["3.13"] = _TARGET_TIMINGS_BY_PYTHON_VERSION["3.12"]
4445

4546

4647
@pytest.mark.internal

0 commit comments

Comments
 (0)