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

fix: support pytest on python 3.12 wrt Fraction formatting change #1821

Merged
merged 1 commit into from
Jul 17, 2023

Commits on Jul 17, 2023

  1. fix: support pytest on python 3.12 wrt Fraction formatting change

    python 3.12 supports float-style formatting for Fraction by
    python/cpython#100161 .
    With this change, when ":n" format specifier is used in format() for
    Fraction type, this now raises ValueError instead of previous
    TypeError.
    
    To make pytest succeed with python 3.12, make
    pint.testing.assert_allclose also rescue ValueError .
    
    Fixes hgrecco#1818 .
    mtasaka committed Jul 17, 2023
    Configuration menu
    Copy the full SHA
    2bd6677 View commit details
    Browse the repository at this point in the history