Replace use of pytest.mark.xfail() with a pytest.raises(<error_type>): context. The replacement fullfills the same purpose as the former without cluttering the pytest output
I've also bumped the minimum version of diffpy.structure to 3.0.2 in setup.py. This ensures that Phase.from_cif() works on Windows with Python 3.10. I've added a changelog entry for this change.
Description of the change
This PR cleans up the test suite output by:
numpy.log()
warningpytest.mark.xfail()
with apytest.raises(<error_type>):
context. The replacement fullfills the same purpose as the former without cluttering the pytest outputI've also bumped the minimum version of diffpy.structure to 3.0.2 in setup.py. This ensures that
Phase.from_cif()
works on Windows with Python 3.10. I've added a changelog entry for this change.Progress of the PR
For reviewers
__init__.py
.CHANGELOG.rst
.__credits__
inorix/__init__.py
and in.zenodo.json
.