Skip to content

test_bntr[start_vec3-cg] fails on Linux with Python 3.10 #657

@r3kste

Description

@r3kste

Bug description

The test tests/optimagic/optimizers/test_pounders_integration.py::test_bntr[start_vec3-cg] has started to fail on Linux environments with Python 3.10. It is temporarily skipped in #656, specifically in 83eac8d.

To Reproduce

Run this test in a fresh Python 3.10 environment on Linux

pytest tests/optimagic/optimizers/test_pounders_integration.py::test_bntr

On CI, the test fails with:

FAILED tests/optimagic/optimizers/test_pounders_integration.py::test_bntr[start_vec3-cg] - AssertionError: 
Arrays are not almost equal to 3 decimals

Mismatched elements: 3 / 3 (100%)
Max absolute difference among violations: 0.1969519
Max relative difference among violations: 1.03506949
 ACTUAL: array([-0.007,  0.003,  0.019])
 DESIRED: array([0.19 , 0.006, 0.011])

On my local environment, the test fails with:

FAILED tests/optimagic/optimizers/test_pounders_integration.py::test_bntr[start_vec3-cg] - AssertionError: 
Arrays are not almost equal to 3 decimals

Mismatched elements: 1 / 3 (33.3%)
Max absolute difference among violations: 0.00179793
Max relative difference among violations: 0.00944892
 ACTUAL: array([0.188, 0.006, 0.011])
 DESIRED: array([0.19 , 0.006, 0.011])

Expected behavior

All five test cases should pass. Currently, only one test case fails.

System

  • OS: Linux
  • Python version: 3.10
  • optimagic version: latest (dev)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions