MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_copy_set

Method test_copy_set

Lib/test/test_copy.py:136–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 self.assertIsNot(y, x)
135
136 def test_copy_set(self):
137 x = {1, 2, 3}
138 y = copy.copy(x)
139 self.assertEqual(y, x)
140 self.assertIsNot(y, x)
141 x = set()
142 y = copy.copy(x)
143 self.assertEqual(y, x)
144 self.assertIsNot(y, x)
145
146 def test_copy_frozenset(self):
147 x = frozenset({1, 2, 3})

Callers

nothing calls this directly

Calls 4

setFunction · 0.85
assertIsNotMethod · 0.80
copyMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected