8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 676b105 commit 0c5ad54Copy full SHA for 0c5ad54
Lib/test/test_collections.py
@@ -253,8 +253,9 @@ def test_union_operators(self):
253
# testing behavior between chainmap and iterable key-value pairs
254
with self.assertRaises(TypeError):
255
cm3 | pairs
256
+ tmp = cm3.copy()
257
cm3 |= pairs
- self.assertEqual(cm3.maps, [cm3.maps[0] | dict(pairs), *cm3.maps[1:]])
258
+ self.assertEqual(cm3.maps, [tmp.maps[0] | dict(pairs), *tmp.maps[1:]])
259
260
# testing proper return types for ChainMap and it's subclasses
261
class Subclass(ChainMap):
0 commit comments