Skip to content

Commit f0dae00

Browse files
fix(tests): declare pytz explicitly (pandas 3.0 dropped it as a hard dep)
tests/unit/test_parameters.py imports pytz directly. It previously arrived transitively via pandas, but the refreshed lock resolves pandas 3.0.3 on Python >=3.11, and pandas 3.0 removed pytz from its required dependencies (it is now only a pandas extra). That broke test collection on 3.11+ with `ModuleNotFoundError: No module named 'pytz'`. Add pytz as an explicit dev dependency so the test suite no longer relies on pandas's transitive graph, which differs across the Python matrix. Co-authored-by: Isaac Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent bb61bd8 commit f0dae00

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ black = "^26.3.1"
102102
pytest-dotenv = "^0.5.2"
103103
pytest-cov = "^4.0.0"
104104
pytest-xdist = "^3.0.0"
105+
# tests/unit/test_parameters.py imports pytz directly. It used to arrive
106+
# transitively via pandas, but pandas 3.0 (resolved on Python >=3.11)
107+
# dropped pytz as a required dependency -- it is now only a pandas extra.
108+
# Declare it explicitly here so the test suite does not depend on pandas's
109+
# transitive graph, which differs across the Python matrix.
110+
pytz = ">=2020.1"
105111
numpy = [
106112
{ version = ">=1.16.6", python = ">=3.10,<3.11" },
107113
{ version = ">=1.23.4", python = ">=3.11" },

0 commit comments

Comments
 (0)