chore(python): re-add `pytest-retry` dependency for `pytest.mark.flaky`
What changed, and why it matters
This commit simply restores a missing Python test dependency called pytest-retry. It only affects the project's testing environment and does not change any code that runs on the Trezor device or any production software. There is no security issue here.
No action required. This is a benign dependency restoration for the test suite.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit re-adds ‘pytest-retry>=1.7.0,<2’ to pyproject.toml and updates uv.lock accordingly. The commit message states it was removed by mistake in a prior commit and is needed for the @pytest.mark.flaky decorator. This is a development/test-only dependency change with no runtime or firmware implications.
Changed components
pyproject.tomluv.lockInspect captured patch +15 / −0
diff --git a/pyproject.toml b/pyproject.toml
index 2206d495..a5c7b648 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -57,6 +57,7 @@ dependencies = [
"trezor-core-tools",
"flake8-annotations>=3.1.1,<4",
"pyelftools>=0.32,<0.33",
+ "pytest-retry>=1.7.0,<2",
"slh-dsa>=0.1.3,<0.2",
"bleak>=1.1.0",
]
diff --git a/uv.lock b/uv.lock
index b753df1c..dee59419 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1700,6 +1700,18 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/a4/7f/92c8dbe185aa38270fec1e73e0ed70d8e5de31963aa057ba621055f8b008/pytest_random_order-1.2.0-py3-none-any.whl", hash = "sha256:78d1d6f346222cdf26a7302c502d2f1cab19454529af960b8b9e1427a99ab277", size = 10889, upload-time = "2025-06-22T14:44:42.438Z" },
]
+[[package]]
+name = "pytest-retry"
+version = "1.7.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "pytest" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/c5/5b/607b017994cca28de3a1ad22a3eee8418e5d428dcd8ec25b26b18e995a73/pytest_retry-1.7.0.tar.gz", hash = "sha256:f8d52339f01e949df47c11ba9ee8d5b362f5824dff580d3870ec9ae0057df80f", size = 19977, upload-time = "2025-01-19T01:56:13.115Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/7c/ff/3266c8a73b9b93c4b14160a7e2b31d1e1088e28ed29f4c2d93ae34093bfd/pytest_retry-1.7.0-py3-none-any.whl", hash = "sha256:a2dac85b79a4e2375943f1429479c65beb6c69553e7dae6b8332be47a60954f4", size = 13775, upload-time = "2025-01-19T01:56:11.199Z" },
+]
+
[[package]]
name = "pytest-timeout"
version = "2.4.0"
@@ -2219,6 +2231,7 @@ dependencies = [
{ name = "pytest" },
{ name = "pytest-ordering" },
{ name = "pytest-random-order" },
+ { name = "pytest-retry" },
{ name = "pytest-timeout" },
{ name = "pytest-xdist" },
{ name = "python-bitcoinlib" },
@@ -2284,6 +2297,7 @@ requires-dist = [
{ name = "pytest", specifier = ">=9.0.3,<10" },
{ name = "pytest-ordering" },
{ name = "pytest-random-order" },
+ { name = "pytest-retry", specifier = ">=1.7.0,<2" },
{ name = "pytest-timeout" },
{ name = "pytest-xdist" },
{ name = "python-bitcoinlib", specifier = ">=0.11.0,<0.12" },
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.