Skip to content

Commit

Permalink
Use parse_single_unit instead of parse_unit_name in benchmark (but ke…
Browse files Browse the repository at this point in the history
…ep benchmark name)
  • Loading branch information
hgrecco committed Jul 15, 2023
1 parent 3538fdc commit b4048cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pint/testsuite/benchmarks/test_10_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b4048cd

Please sign in to comment.