Skip to content

Commit 66318d1

Browse files
committed
cancel check exact
1 parent ad3a87c commit 66318d1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pandas/tests/window/test_rolling.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,12 +1794,12 @@ def test_step_not_positive_raises():
17941794
[
17951795
np.nan,
17961796
50.0,
1797-
33.333333333333336,
1797+
33.33333333333333,
17981798
0.0,
1799-
40.500000000000014,
1799+
40.5,
18001800
0.0,
1801-
0.3333333333333405,
1802-
1.000000000000007,
1801+
0.3333333333333333,
1802+
1.0,
18031803
]
18041804
),
18051805
],
@@ -1811,12 +1811,12 @@ def test_step_not_positive_raises():
18111811
[
18121812
np.nan,
18131813
50.0,
1814-
33.333333333333336,
1814+
33.33333333333333,
18151815
0.0,
18161816
0.0,
1817-
40.500000000000014,
1818-
24.33333333333334,
1819-
1.000000000000004,
1817+
40.5,
1818+
24.333333333333332,
1819+
1.0,
18201820
]
18211821
),
18221822
],
@@ -1875,11 +1875,11 @@ def test_rolling_var_same_value_count_logic(values, window, min_periods, expecte
18751875
# 1. result should be close to correct value
18761876
# non-zero values can still differ slightly from "truth"
18771877
# as the result of online algorithm
1878-
tm.assert_series_equal(result_var, expected, check_exact=True)
1878+
tm.assert_series_equal(result_var, expected)
18791879
# 2. zeros should be exactly the same since the new algo takes effect here
18801880
tm.assert_series_equal(expected == 0, result_var == 0)
18811881

18821882
# std should also pass as it's just a sqrt of var
18831883
result_std = sr.rolling(window, min_periods=min_periods).std()
1884-
tm.assert_series_equal(result_std, np.sqrt(expected), check_exact=True)
1884+
tm.assert_series_equal(result_std, np.sqrt(expected))
18851885
tm.assert_series_equal(expected == 0, result_std == 0)

0 commit comments

Comments
 (0)