Skip to content

BUG: tm.assert_index_equal ignores TimedeltaIndex.freq #23826

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
jbrockmendel opened this issue Nov 21, 2018 · 1 comment
Closed

BUG: tm.assert_index_equal ignores TimedeltaIndex.freq #23826

jbrockmendel opened this issue Nov 21, 2018 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request Testing pandas testing functions or related to the test suite Timedelta Timedelta data type

Comments

@jbrockmendel
Copy link
Member

tdi = pd.TimedeltaIndex(['1 Day', '2 Days'], freq='D')
tdi2 = tdi._shallow_copy(freq=None)

tm.assert_index_equal(tdi, tdi2)

The call to assert_index_equal should raise AssertionError, doesn't.

@jschendel
Copy link
Member

dupe of #13242, which includes some other things as well

@jschendel jschendel added Testing pandas testing functions or related to the test suite Duplicate Report Duplicate issue or pull request Timedelta Timedelta data type labels Nov 21, 2018
@jschendel jschendel added this to the No action milestone Nov 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request Testing pandas testing functions or related to the test suite Timedelta Timedelta data type
Projects
None yet
Development

No branches or pull requests

2 participants