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

Method test_constructor

Lib/test/test_array.py:267–271  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

265 return typecodes[(typecodes.index(self.typecode)+1) % len(typecodes)]
266
267 def test_constructor(self):
268 a = array.array(self.typecode)
269 self.assertEqual(a.typecode, self.typecode)
270 self.assertGreaterEqual(a.itemsize, self.minitemsize)
271 self.assertRaises(TypeError, array.array, self.typecode, None)
272
273 def test_len(self):
274 a = array.array(self.typecode)

Callers

nothing calls this directly

Calls 3

assertRaisesMethod · 0.95
assertGreaterEqualMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected