summaryrefslogtreecommitdiff
path: root/tests/test_map.py
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-11-20 14:12:57 -0500
committerYury Selivanov <yury@magic.io>2018-11-20 14:25:07 -0500
commit339d62fadafd0ab35a6394c2ad210b092704ce98 (patch)
treebeefe165fa14198e9ffcba18a8f29d920496909b /tests/test_map.py
parent1d813dd4ad80a1faa64844d96da45ba68396ddef (diff)
downloadimmutables-339d62fadafd0ab35a6394c2ad210b092704ce98.tar.gz
immutables-339d62fadafd0ab35a6394c2ad210b092704ce98.zip
Make MapMutation unpickleable
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 d7ee885..959e00c 100644
--- a/tests/test_map.py
+++ b/tests/test_map.py
@@ -1254,6 +1254,9 @@ class BaseMapTest:
self.assertTrue(isinstance(uh, self.Map))
self.assertEqual(h, uh)
+ with self.assertRaisesRegex(TypeError, "can't pickle"):
+ pickle.dumps(h.mutate())
+
class PyMapTest(BaseMapTest, unittest.TestCase):