[Debichem-devel] Bug#1077733: python-ase: fio test_espresso fails: DID NOT RAISE <class 'DeprecationWarning'>

Drew Parsons dparsons at debian.org
Thu Aug 1 10:18:14 BST 2024


Source: python-ase
Version: 3.23.0-1
Severity: normal
Control: forwarded -1 https://gitlab.com/ase/ase/-/issues/1461

python-ase 3.23.0 fails tests:

_________________________________________________________________________________________ test_pw_input_write_nested_flat _________________________________________________________________________________________
[gw3] linux -- Python 3.12.4 /usr/bin/python3.12

    def test_pw_input_write_nested_flat():
        """Write a structure and read it back."""
        bulk = ase.build.bulk('Fe')
    
        fh = 'espresso_test.pwi'
        pseudos = {'Fe': 'carrot'}
    
        input_data = {"control": {"calculation": "scf"},
                      "unused_keyword1": "unused_value1",
                      "used_sections": {"used_keyword1": "used_value1"}
                      }
    
>       with pytest.raises(DeprecationWarning):
E       Failed: DID NOT RAISE <class 'DeprecationWarning'>

/build/python-ase/.pybuild/cpython3_3.12_ase/build/ase/test/fio/test_espresso.py:417: Failed
---------------------------------------------------------------------------------------------- Captured stdout setup ----------------------------------------------------------------------------------------------
Testdir: /tmp/pytest/pytest-2/popen-gw3/test_pw_input_write_nested_fla0
-------------------------------------------------------------------------------------------- Captured stdout teardown ---------------------------------------------------------------------------------------------
Global seed for "test/fio/test_espresso.py:test_pw_input_write_nested_flat" was: 1300
_________________________________________________________________________________________ TestConstraints.test_fix_scaled _________________________________________________________________________________________
[gw3] linux -- Python 3.12.4 /usr/bin/python3.12

self = <ase.test.fio.test_espresso.TestConstraints object at 0x7f09db778320>

    def test_fix_scaled(self):
        """Test FixScaled"""
        constraint = FixScaled(0, mask=(1, 1, 0))
>       with pytest.raises(UserWarning):
E       Failed: DID NOT RAISE <class 'UserWarning'>

/build/python-ase/.pybuild/cpython3_3.12_ase/build/ase/test/fio/test_espresso.py:659: Failed



More information about the Debichem-devel mailing list