From b4048cd39ab4eb482243f195adc580c5125d8b66 Mon Sep 17 00:00:00 2001 From: Hernan Grecco Date: Sat, 15 Jul 2023 14:40:04 -0300 Subject: [PATCH] Use parse_single_unit instead of parse_unit_name in benchmark (but keep benchmark name) --- pint/testsuite/benchmarks/test_10_registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pint/testsuite/benchmarks/test_10_registry.py b/pint/testsuite/benchmarks/test_10_registry.py index ec0a43429..073bc9230 100644 --- a/pint/testsuite/benchmarks/test_10_registry.py +++ b/pint/testsuite/benchmarks/test_10_registry.py @@ -71,8 +71,8 @@ def test_getitem(benchmark, setup: SetupType, key: str, pre_run: bool): def test_parse_unit_name(benchmark, setup: SetupType, key: str, pre_run: bool): ureg, _ = setup if pre_run: - no_benchmark(ureg.parse_unit_name, key) - benchmark(ureg.parse_unit_name, key) + no_benchmark(ureg.parse_single_unit, key) + benchmark(ureg.parse_single_unit, key) @pytest.mark.parametrize("key", UNITS)