aboutsummaryrefslogtreecommitdiff
path: root/tests/test_map.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-12-13 16:21:46 -0500
committerYury Selivanov <yury@magic.io>2018-12-13 16:21:46 -0500
commit9862417e80ada753c85dcc127724843f5c8bc989 (patch)
tree43e18fc6c79faa1a6b8286302454c6bbc39d9e54 /tests/test_map.py
parent0d6f144fcd9f2060153908878e23ab466ffefa44 (diff)
downloadimmutables-9862417e80ada753c85dcc127724843f5c8bc989.tar.gz
immutables-9862417e80ada753c85dcc127724843f5c8bc989.zip
Don't allow MapMutation.update() calls after the mutation is finished
Diffstat (limited to 'tests/test_map.py')
-rw-r--r--tests/test_map.py3
1 files changed, 3 insertions, 0 deletions
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')