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

Method test_remove

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

Source from the content-addressed store, hash-verified

231 self.assertTrue(len(self.fs) == 1)
232
233 def test_remove(self):
234 x = ustr('a')
235 self.s.remove(x)
236 self.assertNotIn(x, self.s)
237 self.assertRaises(KeyError, self.s.remove, x)
238 self.assertRaises(TypeError, self.s.remove, [])
239
240 def test_discard(self):
241 a, q = ustr('a'), ustr('Q')

Callers

nothing calls this directly

Calls 3

assertNotInMethod · 0.80
removeMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected