TST: Table data type comparison fails with numpy-dev
See original GitHub issueThese are new failures, probably from numpy-dev, which is now 1.21.dev after the release of 1.20.
One example (others are variants of such comparisons):
> assert col.dtype == dtype_expected
E AssertionError: assert dtype('O') == dtype('S1')
E + where dtype('O') = <MaskedColumn name='col0' dtype='object' length=8>\n 0\n 1\n 2\n 3\n 4\n 5\n 6\n--.dtype
Affected tests:
astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape0-S]
astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape0-U]
astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape1-S]
astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape1-U]
astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape2-S]
astropy/table/tests/test_masked.py::TestTableInit::test_init_from_sequence_data_numeric_untyped[shape2-U]
astropy/table/tests/test_pprint.py::test_html_escaping
docs/table/masking.rst::masking.rst
Is this a matter of updating the expected results, or is there some compatibility bug to be fixed – @mhvk or @taldcroft ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
TST: VisibleDeprecationWarning causing numpy-dev failures
This just started happening, so I suspect it is due to numpy/numpy#15119 (NEP 34), causing the following failures in the numpy-dev job that ......
Read more >FutureWarning: elementwise comparison failed; returning ...
I am using Pandas 0.19.1 on Python 3. I am getting a warning on these lines of code. I'm trying to get a...
Read more >Data Analysis with Python
Introduction. Data Analysis is process of extracting information from raw data. It aims to build a model with predictive power.
Read more >PEP 485 – A Function for testing approximate equality
If, for a given use case, a user needs to compare to zero, the test will be guaranteed to fail the first time,...
Read more >ufunc 'bitwise_and' not supported for the input types
You get the error because bitwise and is not defined for a floating point ... Then if compare by isin output is condition...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
See https://github.com/numpy/numpy/issues/18425. I’m marking this as upstream fix needed. If they can’t fix it then we will need to do some deeper changes to Table code. I’d suggest closing #11318.
Very weird indeed! Hopefully it will auto-fix in a week or so…