Skip to content

Commit 09de147

Browse files
authored
ENH: Add tzdata to hard dependencies (#61308)
* ENH: add tzdata to the _hard_dependencies * Add github issue number into test comment * Update whatsnew v3.0.0.rst * Remove change content from whatsnew v3.0.0.rst
1 parent dd1f69e commit 09de147

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: pandas/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
__docformat__ = "restructuredtext"
44

55
# Let users know if they're missing any of our hard dependencies
6-
_hard_dependencies = ("numpy", "dateutil")
6+
_hard_dependencies = ("numpy", "dateutil", "tzdata")
77

88
for _dependency in _hard_dependencies:
99
try:

Diff for: pandas/tests/test_downstream.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ def test_yaml_dump(df):
187187
tm.assert_frame_equal(df, loaded2)
188188

189189

190-
@pytest.mark.parametrize("dependency", ["numpy", "dateutil"])
190+
@pytest.mark.parametrize("dependency", ["numpy", "dateutil", "tzdata"])
191191
def test_missing_required_dependency(monkeypatch, dependency):
192-
# GH#61030
192+
# GH#61030, GH61273
193193
original_import = __import__
194194
mock_error = ImportError(f"Mock error for {dependency}")
195195

0 commit comments

Comments
 (0)