8000 DEPR: Timestamp.freq by jbrockmendel · Pull Request #33832 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DEPR: Timestamp.freq #33832

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

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
8000
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix broken test
  • Loading branch information
jbrockmendel committed Apr 28, 2020
commit cd481e63e08bbe8d85b8fa41f5e1033439c379a8
9 changes: 8 additions & 1 deletion pandas/tests/series/test_timeseries.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import warnings

import numpy as np
import pytest

Expand Down Expand Up @@ -115,7 +117,12 @@ def test_asarray_object_dt64(self, tz):

with tm.assert_produces_warning(None):
# Future behavior (for tzaware case) with no warning
result = np.asarray(ser, dtype=object)
with warnings.catch_warnings():
# Passing freq to Timestamp constructor
warnings.simplefilter("ignore", FutureWarning)
# FIXME: this makes the assert_produces_warning(None) toothless

result = np.asarray(ser, dtype=object)

expected = np.array(
[pd.Timestamp("2000-01-01", tz=tz), pd.Timestamp("2000-01-02", tz=tz)]
Expand Down
0