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

Method test_product

Lib/test/test_itertools.py:2252–2256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2250 self.assertRaises(ZeroDivisionError, list, compress(E(s), repeat(1)))
2251
2252 def test_product(self):
2253 for s in ("123", "", range(1000), ('do', 1.2), range(2000,2200,5)):
2254 self.assertRaises(TypeError, product, X(s))
2255 self.assertRaises(TypeError, product, N(s))
2256 self.assertRaises(ZeroDivisionError, product, E(s))
2257
2258 def test_cycle(self):
2259 for s in ("123", "", range(1000), ('do', 1.2), range(2000,2200,5)):

Callers

nothing calls this directly

Calls 4

XClass · 0.70
NClass · 0.70
EClass · 0.70
assertRaisesMethod · 0.45

Tested by

no test coverage detected