From 476bdc77b9bf5945b8da1e63174f4ba2d332f250 Mon Sep 17 00:00:00 2001 From: jab Date: Wed, 29 Jun 2016 22:04:16 -0400 Subject: [PATCH] test_overwriting_putall_withdup -> test_forceupdate_withdup --- tests/test_benchmark.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/test_benchmark.py b/tests/test_benchmark.py index 4843a79..67cb824 100644 --- a/tests/test_benchmark.py +++ b/tests/test_benchmark.py @@ -1,4 +1,4 @@ -from bidict import bidict, orderedbidict, ValueDuplicationError, OVERWRITE +from bidict import bidict, orderedbidict, ValueDuplicationError import pytest @@ -68,8 +68,7 @@ def test_update_withdup(benchmark): benchmark(runner) -def test_overwriting_putall_withdup(benchmark): +def test_forceupdate_withdup(benchmark): elements_ = bidict(elements) - benchmark(elements_.putall, update_withdupval, - on_dup_key=OVERWRITE, on_dup_val=OVERWRITE, on_dup_kv=OVERWRITE) + benchmark(elements_.forceupdate, update_withdupval) assert elements_.inv['hydrogen'] == 'key_with_dup_val'