-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Clean moments consistency #33813
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
TST: Clean moments consistency #33813
Conversation
great looks good. when doing these types of reactoring just make sure that we don't lose tests (a bit tricky to check here as you are actually changing the number of tests), but lgtm. |
thanks @charlesdong1991 |
thanks @jreback i will keep followups smaller, and easier to check if any test is lost! |
@@ -418,3 +404,44 @@ def test_expanding_consistency(self, min_periods): | |||
# GH 9422 | |||
if name in ["sum", "prod"]: | |||
tm.assert_equal(expanding_f_result, expanding_apply_f_result) | |||
|
|||
@pytest.mark.parametrize("min_periods", [0, 1, 2, 3, 4]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should these get @pytest.mark.slow
? test_rolling_consistency_cov
clocks in at 38 seconds for me
As discussed in #30577 (comment)
This PR is the first step to achieve it, it basically does one thing: break up the giant consistency test in
common
into four tests based on test contents:var
,std
,cov
, andseries data
.cc @jreback