Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[4.2rc1] Test failures on armel: no FPEs #11011

Copy link
Copy link

Description

@olebole
Issue body actions

Description

On the Debian "ARM 32 bit little Endian Soft Float" ("armel") platform, I get test failures since the platform seems to handle floating point errors differently. This is a regression, but it could probably be ignored?

Expected behavior

The tests should succeed

Actual behavior

I get the following two failures:

______________________ test_linear_fit_model_set_weights _______________________

    def test_linear_fit_model_set_weights():
       […]
        with pytest.warns(RuntimeWarning,
                          match=r'invalid value encountered in true_divide'):
>           fitted_model = fitter(init_model, x,
                                  np.ma.array(y, mask=np.isclose(weights, 0)),
                                  weights=weights)
E           Failed: DID NOT WARN. No warnings of type (<class 'RuntimeWarning'>,) was emitted. The list of emitted warnings is: [].

astropy/modeling/tests/test_model_sets.py:392: Failed

and

____________________ test_blackbody_exceptions_and_warnings ____________________

    def test_blackbody_exceptions_and_warnings():
        […]
        with pytest.warns(AstropyUserWarning, match='invalid') as w:
            bb(0 * u.AA)
>       assert len(w) == 3  # 2 of these are RuntimeWarning from zero divide
E       assert 1 == 3
E        +  where 1 = len(WarningsChecker(record=True))

astropy/modeling/tests/test_physical_models.py:119: AssertionError

Steps to Reproduce

Build and test the package on armel

System Details

  • Python 3.8.6, 3.9.0
  • Numpy 1.19.4
  • Astropy 4.2rc1
  • Scipy 1.5.3
  • Matplotlib 3.3.2
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.