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

Method test_error_iter

Lib/test/test_iter.py:1144–1147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1142 check_free_after_iterating(self, iter, SequenceClass, (0,))
1143
1144 def test_error_iter(self):
1145 for typ in (DefaultIterClass, NoIterClass):
1146 self.assertRaises(TypeError, iter, typ())
1147 self.assertRaises(ZeroDivisionError, iter, BadIterableClass())
1148
1149 def test_exception_locations(self):
1150 # The location of an exception raised from __init__ or

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.95
BadIterableClassClass · 0.85

Tested by

no test coverage detected