From 9862417e80ada753c85dcc127724843f5c8bc989 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 13 Dec 2018 16:21:46 -0500 Subject: Don't allow MapMutation.update() calls after the mutation is finished --- tests/test_map.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/test_map.py b/tests/test_map.py index 66d07e7..a99b856 100644 --- a/tests/test_map.py +++ b/tests/test_map.py @@ -1148,6 +1148,9 @@ class BaseMapTest: with self.assertRaisesRegex(ValueError, 'has been finished'): mm['a'] = 'b' + with self.assertRaisesRegex(ValueError, 'has been finished'): + mm.update(a='b') + def test_map_mut_13(self): key1 = HashKey(123, 'aaa') key2 = HashKey(123, 'aaa') -- cgit v1.2.3