-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: fix fixture for numpy dtypes #23983
Conversation
Hello @h-vetinari! Thanks for updating the PR.
Comment last updated on November 29, 2018 at 06:43 Hours UTC |
def test_drop_duplicates(any_numpy_dtype, keep, expected): | ||
tc = Series([1, 0, 3, 5, 3, 0, 4], dtype=np.dtype(any_numpy_dtype)) | ||
|
||
if tc.dtype == 'bool': |
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.
i would just skip if bool here
pandas/conftest.py
Outdated
@@ -386,8 +386,16 @@ def tz_aware_fixture(request): | |||
COMPLEX_DTYPES = [complex, "complex64", "complex128"] | |||
STRING_DTYPES = [str, 'str', 'U'] | |||
|
|||
DATETIMEDELTA_DTYPES = ['datetime64[ns]', 'M8[ns]', |
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.
separate these out, these should not be grouped together
Codecov Report
@@ Coverage Diff @@
## master #23983 +/- ##
==========================================
- Coverage 92.31% 92.3% -0.01%
==========================================
Files 161 161
Lines 51513 51551 +38
==========================================
+ Hits 47554 47585 +31
- Misses 3959 3966 +7
Continue to review full report at Codecov.
|
lgtm. ping on green. |
@jreback |
thanks |
git diff upstream/master -u -- "*.py" | flake8 --diff
This was one of the things I stumbled over while working on #23982. There's a fixture for all_numpy_dtypes that got introduced in #21899, but it's a lie - it doesn't cover (nearly) all numpy dtypes. It's currently only used in one test, and so I've adapted it here to be able to actually test all numpy dtypes.