Skip to content

4.0rc2: Deprecation warnings during VOTable tests on MIPS platform #9749

@olebole

Description

@olebole

Header:

platform linux -- Python 3.8.0+, pytest-4.6.6, py-1.8.0, pluggy-0.13.0
Matplotlib: 3.0.2
Freetype: 2.10.1

Running tests with Astropy version 4.0rc2.
Running tests in .pybuild/cpython3_3.8/build.

Date: 2019-12-09T18:49:42

Platform: Linux-4.19.0-7-octeon-mips-with-glibc2.29

Executable: /usr/bin/python3.8

Full Python Version: 
3.8.0+ (default, Nov 23 2019, 04:55:55) 
[GCC 9.2.1 20191109]

encodings: sys: utf-8, locale: UTF-8, filesystem: utf-8
byteorder: little
float info: dig: 15, mant_dig: 15

Package versions: 
Numpy: 1.17.4
Scipy: 1.3.3
Matplotlib: 3.0.2
h5py: 2.10.0
Pandas: not available
astropy-helpers: 3.2.2

Using Astropy options: remote_data: none.

rootdir: /<<PKGBUILDDIR>>, inifile: setup.cfg
plugins: mpl-0.10, remotedata-0.3.2, openfiles-0.4.0, doctestplus-0.5.0, astropy-header-0.1.1, arraydiff-0.3
collected 14136 items / 30 skipped / 14106 selected

With 4.0rc2, I get a number of errors on our "mipsel" and "mips64el" platforms (32/64 bit little endian). They all appeare in astropy/io/votable/tests/vo_test.py and look like:

________________ ERROR at setup of TestFixups.test_implicit_id _________________
RuntimeWarning: invalid value encountered in equal

The above exception was the direct cause of the following exception:

self = <class 'astropy.io.votable.tests.vo_test.TestFixups'>

    def setup_class(self):
>       self.table = parse(
            get_pkg_data_filename('data/regression.xml')).get_first_table()

astropy/io/votable/tests/vo_test.py:197: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
astropy/utils/decorators.py:521: in wrapper
    return function(*args, **kwargs)
astropy/io/votable/table.py:166: in parse
    return tree.VOTableFile(
astropy/io/votable/tree.py:3567: in parse
    tag_mapping.get(tag, self._add_unknown_tag)(
astropy/io/votable/tree.py:3478: in _add_resource
    resource.parse(self, iterator, config)
astropy/io/votable/tree.py:3279: in parse
    tag_mapping.get(tag, self._add_unknown_tag)(
astropy/io/votable/tree.py:3225: in _add_table
    table.parse(iterator, config)
astropy/io/votable/tree.py:2499: in parse
    self.array = self._parse_tabledata(
astropy/io/votable/tree.py:2615: in _parse_tabledata
    vo_reraise(e, config, pos)
astropy/io/votable/exceptions.py:119: in vo_reraise
    raise exc
astropy/io/votable/tree.py:2608: in _parse_tabledata
    vo_reraise(
astropy/io/votable/exceptions.py:119: in vo_reraise
    raise exc
astropy/io/votable/tree.py:2605: in _parse_tabledata
    value, mask_value = parsers[i](
astropy/io/votable/converters.py:543: in parse
    value, mask = parse(x, config, pos)
astropy/io/votable/converters.py:718: in _parse_permissive
    return f, self.is_null(f)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <astropy.io.votable.converters.Double object at 0x66da6928>, value = nan

    def _is_null(self, value):
>       return value == self.null
E       DeprecationWarning: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/astropy/io/votable/tests/data/regression.xml:162:6: DeprecationWarning: elementwise comparison failed; this will raise an error in the future. (in row 1, col 'doublearray')

astropy/io/votable/converters.py:652: DeprecationWarning

Since in my 4.0rc1 tests I had to mask warning-as-error, I can't tell whether this happened before.
The same appears as failure in test_table and others. Full build log here.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions