Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two test failures in pint/testsuite/benchmarks/test_10_registry.py #1898

Open
musicinmybrain opened this issue Dec 13, 2023 · 1 comment
Open

Comments

@musicinmybrain
Copy link
Contributor

On Fedora Linux 39, x86_64, with Python 3.12.0:

gh repo clone hgrecco/pint
cd pint
git checkout 0.23
python3 -m venv _e
. _e/bin/activate
pip install -e .[test,numpy,xarray,dask]
pytest

The extras I install here correspond to those with satisfiable dependencies in Fedora Rawhide.

============================== short test summary info ===============================
FAILED pint/testsuite/test_compat_upcast.py::test_quantification - AttributeError: 'float' object has no attribute 'units'
FAILED pint/testsuite/test_compat_upcast.py::test_dataset_operation_with_unit - pint.errors.DimensionalityError: Cannot convert from 'dimensionless' to 'kelvin'
FAILED pint/testsuite/benchmarks/test_10_registry.py::test_load_definitions_stage_2[None] - ValueError: Group USCSLengthInternational already present in registry
FAILED pint/testsuite/benchmarks/test_10_registry.py::test_load_definitions_stage_2[True] - ValueError: Group USCSLengthInternational already present in registry

This issue is about the last two failures because those are the two I see in a downstream RPM build, although the first two errors may also be of interest.

@avalentino
Copy link

I have the same issue.
Is there any workaround available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants