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

Method test_constructor_identity

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

Source from the content-addressed store, hash-verified

199 self.assertRaises(TypeError, s.__init__, 1);
200
201 def test_constructor_identity(self):
202 s = WeakSet(self.items)
203 t = WeakSet(s)
204 self.assertNotEqual(id(s), id(t))
205
206 def test_hash(self):
207 self.assertRaises(TypeError, hash, self.s)

Callers

nothing calls this directly

Calls 3

WeakSetClass · 0.90
idFunction · 0.85
assertNotEqualMethod · 0.80

Tested by

no test coverage detected