Skip to content

Commit 64bf3fe

Browse files
committed
test rolling
1 parent b522022 commit 64bf3fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/window/test_rolling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
)
55

66
import numpy as np
7-
from numpy.testing import assert_allclose
87
import pytest
98

109
from pandas.compat import (
@@ -1100,7 +1099,8 @@ def test_rolling_var_numerical_issues(func, third_value, values):
11001099
ds = Series([99999999999999999, 1, third_value, 2, 3, 1, 1])
11011100
result = getattr(ds.rolling(2), func)()
11021101
expected = Series([np.nan] + values)
1103-
assert_allclose(result[1:].values, expected[1:].values, rtol=1e-5, atol=1e-8)
1102+
tm.assert_almost_equal(result[1:].values, expected[1:].values, rtol=1e-4, atol=1e-6)
1103+
11041104

11051105
def test_timeoffset_as_window_parameter_for_corr(unit):
11061106
# GH: 28266

0 commit comments

Comments
 (0)