-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: tweak Hypothesis configuration and idioms #23441
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
Conversation
Hello @Zac-HD! Thanks for updating the PR.
Comment last updated on November 01, 2018 at 06:20 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #23441 +/- ##
=======================================
Coverage 92.21% 92.21%
=======================================
Files 161 161
Lines 51187 51187
=======================================
Hits 47202 47202
Misses 3985 3985
Continue to review full report at Codecov.
|
return pd.DatetimeIndex(list(dr)) | ||
|
||
@given(index=indices(5), num_columns=integers(0, 5)) | ||
@given(index=indices(max_length=5), num_columns=integers(0, 5)) |
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.
Generally, we would prefer that separate changes go into separate PR's, but these are small enough that it should be okay.
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.
It's kinda related in that this is input to the test that was timing out, but point taken - I'll try to split future changes like this into multiple PRs 😄
CC @TomAugspurger @jreback FYI. |
Thanks! |
…xamples * repo_org/master: (66 commits) CLN: doc string (pandas-dev#23469) DOC: Add cookbook entry for triangular correlation matrix (GH22840) (pandas-dev#23032) add number of Errors, Warnings to scripts/validate_docstrings.py (pandas-dev#23150) BUG: Allow freq conversion from dt64 to period (pandas-dev#23460) ENH: Add FrozenList.union and .difference (pandas-dev#23394) REF: cython cleanup, typing, optimizations (pandas-dev#23464) strictness and checks for Timedelta _simple_new (pandas-dev#23433) Fixing flake8 problems new to flake8 3.6.0 (pandas-dev#23472) DOC: Updating the docstring of Series.dot (pandas-dev#22890) TST: Fixturize series/test_analytics.py (pandas-dev#22755) BUG/ENH: Handle NonexistentTimeError in date rounding (pandas-dev#23406) PERF: speed up concat on Series by making _get_axis_number() a classmethod (pandas-dev#23404) REF: Remove DatetimelikeArrayMixin._shallow_copy (pandas-dev#23430) REF: strictness/simplification in DatetimeArray/Index _simple_new (pandas-dev#23431) REF: cython cleanup, typing, optimizations (pandas-dev#23456) TST: tweak Hypothesis configuration and idioms (pandas-dev#23441) BUG: fix HDFStore.append with all empty strings error (GH12242) (pandas-dev#23435) TST: Skip 32bit failing IntervalTree tests (pandas-dev#23442) BUG: Deprecate nthreads argument (pandas-dev#23112) style: fix import format at pandas/core/reshape (pandas-dev#23387) ...
* Adjust Hypothesis timeout settings * Define strategy as function, not method
* Adjust Hypothesis timeout settings * Define strategy as function, not method
* Adjust Hypothesis timeout settings * Define strategy as function, not method
#19831 saw a flaky test, where a slow VM on Travis went over the default deadline. This PR therefore configures the per-test-case deadline to a higher value, and disables the global timeout (which is deprecated - we know it's confusing but haven't bumped a major version in years...).
I've also moved a custom strategy from a method on the class to a standalone function, which should avoid some confusion as to where the
draw
argument comes from!