diff options
author | Taneli Hukkinen <hukkinj1@users.noreply.github.com> | 2020-05-13 20:41:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 11:41:25 -0700 |
commit | e0a07ab5bf65d416967f624172644d7846616569 (patch) | |
tree | d9221b6c256e70750516ca8c68bbf5ba7b6498a8 /tests/test_map.py | |
parent | 51b1871ad20da16b257ec782f73c607d5fcf5f85 (diff) | |
download | immutables-e0a07ab5bf65d416967f624172644d7846616569.tar.gz immutables-e0a07ab5bf65d416967f624172644d7846616569.zip |
Fix errors when a kwarg is named "col" (#35)
Diffstat (limited to 'tests/test_map.py')
-rw-r--r-- | tests/test_map.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_map.py b/tests/test_map.py index 5c4e1fb..37b5b65 100644 --- a/tests/test_map.py +++ b/tests/test_map.py @@ -1436,6 +1436,11 @@ class BaseMapTest: def test_map_is_subscriptable(self): self.assertIs(self.Map[int, str], self.Map) + def test_kwarg_named_col(self): + self.assertEqual(dict(self.Map(col=0)), {"col": 0}) + self.assertEqual(dict(self.Map(a=0, col=1)), {"a": 0, "col": 1}) + self.assertEqual(dict(self.Map({"a": 0}, col=1)), {"a": 0, "col": 1}) + class PyMapTest(BaseMapTest, unittest.TestCase): |