MCPcopy Index your code
hub / github.com/python/cpython / test_clear

Method test_clear

Lib/test/test_weakset.py:209–212  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

207 self.assertRaises(TypeError, hash, self.s)
208
209 def test_clear(self):
210 self.s.clear()
211 self.assertEqual(self.s, WeakSet([]))
212 self.assertEqual(len(self.s), 0)
213
214 def test_copy(self):
215 dup = self.s.copy()

Callers

nothing calls this directly

Calls 3

WeakSetClass · 0.90
clearMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected