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

Method test_product

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

Source from the content-addressed store, hash-verified

2202 self.assertRaises(ZeroDivisionError, list, compress(E(s), repeat(1)))
2203
2204 def test_product(self):
2205 for s in ("123", "", range(1000), ('do', 1.2), range(2000,2200,5)):
2206 self.assertRaises(TypeError, product, X(s))
2207 self.assertRaises(TypeError, product, N(s))
2208 self.assertRaises(ZeroDivisionError, product, E(s))
2209
2210 def test_cycle(self):
2211 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