Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI/DEPS: Fix timezone test due to pytz upgrade #48065

Merged
merged 6 commits into from
Aug 14, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/32-bit-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \
python setup.py build_ext -q -j2 && \
python -m pip install --no-build-isolation --no-use-pep517 -e . && \
python -m pip list && \
mroeschke marked this conversation as resolved.
Show resolved Hide resolved
export PANDAS_CI=1 && \
pytest -m 'not slow and not network and not clipboard and not single_cpu' pandas --junitxml=test-data.xml"

Expand Down
8 changes: 5 additions & 3 deletions pandas/tests/tseries/offsets/test_dst.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

from pandas.tests.tseries.offsets.test_offsets import get_utc_offset_hours

# error: Module has no attribute "__version__"
pytz_version = float(pytz.__version__) # type: ignore[attr-defined]


class TestDST:

Expand Down Expand Up @@ -186,9 +189,8 @@ def test_all_offset_classes(self, tup):
MonthBegin(66),
"Africa/Kinshasa",
marks=pytest.mark.xfail(
# error: Module has no attribute "__version__"
float(pytz.__version__) <= 2020.1, # type: ignore[attr-defined]
reason="GH#41906",
not (2020.5 <= pytz_version <= 2022.1),
reason="GH#41906: pytz utc transition dates changed",
),
),
(
Expand Down