We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c050fd commit ff20a1dCopy full SHA for ff20a1d
pandas/tests/test_debug.py
@@ -1,7 +1,7 @@
1
-from datetime import timedelta
2
-
3
from pandas._libs.tslibs.timedeltas import debug_divmod_bug
4
+import pandas as pd
+
5
6
def non_buggy_divmod(delta):
7
conv = 1000 * 1
@@ -15,7 +15,7 @@ def non_buggy_divmod(delta):
15
16
17
def test_debug_divmod_bug():
18
- td = timedelta(minutes=-7)
+ td = pd.Timedelta(minutes=-7).to_pytimedelta()
19
result = debug_divmod_bug(td)
20
expected = non_buggy_divmod(td)
21
assert result == expected
0 commit comments