-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
TST: Add test for categorical with str and tuples #28693
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
01c8f2d
to
af67e31
Compare
This bug affects numpy versions 1.13.3 to 1.15.4. Versions greater than 1.16.0 are fine. However, since it was a regression in numpy (e.g. 1.11.0 is okay), I do not know if it will not show up again. The tests are failing for lower versions of numpy. |
To check for different versions of numpy, you need to skipif using the ``compat.numpy._np_version_under1p*` bools. |
af67e31
to
a3b6b3d
Compare
# For NumPy <1.16, np.array(["", ("a",)]) raises | ||
# ValueError: setting an array element with a sequence. | ||
if _np_version_under1p16: | ||
raise pytest.skip("Skipping for NumPy <1.16") |
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.
Better to decorate the test method with @pytest.mark.skipif( _np_version_under1p16, reason="Skipping for NumPy <1.16")
.
a3b6b3d
to
2a77b7a
Compare
The bug is not present any more. closes pandas-dev#21416
2a77b7a
to
09d58a9
Compare
Thanks, @has2k1! |
The bug is not present any more. closes pandas-dev#21416
The bug is not present any more. closes pandas-dev#21416
The bug is not present any more. closes pandas-dev#21416
The bug is not present any more.
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
[ ] whatsnew entry