Skip to content

Commit 189a86b

Browse files
TomAugspurgerproost
authored andcommitted
CI: disable numpydev job (pandas-dev#30049)
* CI: disable numpydev job xref pandas-dev#30043. Will take some time to fix all these cases. * mypy fixup
1 parent 3276d4b commit 189a86b

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

ci/azure/posix.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ jobs:
4444
PATTERN: "not slow and not network"
4545
LOCALE_OVERRIDE: "zh_CN.UTF-8"
4646

47-
py37_np_dev:
48-
ENV_FILE: ci/deps/azure-37-numpydev.yaml
49-
CONDA_PY: "37"
50-
PATTERN: "not slow and not network"
51-
TEST_ARGS: "-W error"
52-
PANDAS_TESTING_MODE: "deprecate"
53-
EXTRA_APT: "xsel"
47+
# Disabled for NumPy object-dtype warning.
48+
# https://github.com/pandas-dev/pandas/issues/30043
49+
# py37_np_dev:
50+
# ENV_FILE: ci/deps/azure-37-numpydev.yaml
51+
# CONDA_PY: "37"
52+
# PATTERN: "not slow and not network"
53+
# TEST_ARGS: "-W error"
54+
# PANDAS_TESTING_MODE: "deprecate"
55+
# EXTRA_APT: "xsel"
5456

5557
steps:
5658
- script: |

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9133,7 +9133,7 @@ def tshift(self, periods: int = 1, freq=None, axis=0):
91339133
if freq == orig_freq:
91349134
new_data = self._data.copy()
91359135
new_data.axes[block_axis] = index.shift(periods)
9136-
else:
9136+
elif orig_freq is not None:
91379137
msg = (
91389138
f"Given freq {freq.rule_code} does not match"
91399139
f" PeriodIndex freq {orig_freq.rule_code}"

0 commit comments

Comments
 (0)