From b6cc35cce91d43e3f934c4f8ba3fe4a023c6f24d Mon Sep 17 00:00:00 2001 From: Sean Kavanagh Date: Thu, 2 Apr 2026 19:19:27 -0400 Subject: [PATCH 1/2] Make STORE_DURATIONS_SETUP_AND_TEARDOWN_THRESHOLD a controllable env var --- src/pytest_split/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pytest_split/plugin.py b/src/pytest_split/plugin.py index 9140936..dab4814 100644 --- a/src/pytest_split/plugin.py +++ b/src/pytest_split/plugin.py @@ -17,7 +17,9 @@ # Ugly hack for freezegun compatibility: https://github.com/spulec/freezegun/issues/286 -STORE_DURATIONS_SETUP_AND_TEARDOWN_THRESHOLD = 60 * 10 # seconds +STORE_DURATIONS_SETUP_AND_TEARDOWN_THRESHOLD = float( + os.environ.get("PYTEST_SPLIT_SETUP_TEARDOWN_THRESHOLD", 60 * 10) +) # seconds def pytest_addoption(parser: "Parser") -> None: From 4999ba51c351ab80f8e9e71037cadfff4ef07379 Mon Sep 17 00:00:00 2001 From: Sean Kavanagh Date: Thu, 2 Apr 2026 19:22:25 -0400 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1391dff..c9ae31c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] ### Fixed - Fix malformed bullet points rendering in GitHub Pages documentation +- Make `STORE_DURATIONS_TEARDOWN_THRESHOLD` controllable through an environment variable. ## [0.11.0] - 2026-02-03 ### Added