8000 TST: For GH4861, Period and datetime in multiindex by eoveson · Pull Request #23776 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TST: For GH4861, Period and datetime in multiindex #23776

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

Merged
merged 9 commits into from
Nov 20, 2018
Prev Previous commit
Next Next commit
TST: Add test case for GH14080 for overflow exception
  • Loading branch information
erikoveson committed Nov 18, 2018
commit f7be8f3828f9eddd204af577216e388d7cf5da12
4 changes: 2 additions & 2 deletions pandas/tests/scalar/timestamp/test_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_overflow_offset2(self):
# used to crash, so check for proper overflow exception

stamp = Timestamp("2000/1/1")
offset_overflow = to_offset("D")*100**25
offset_no_overflow = to_offset("D")*100
offset_overflow = to_offset("D") * 100 ** 25
offset_no_overflow = to_offset("D") * 100

# overflow expected
with pytest.raises(OverflowError):
Expand Down
0