MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_iterator_rvp

Function test_iterator_rvp

tests/test_sequences_and_iterators.py:273–277  ·  view source on GitHub ↗

#388: Can't make iterators via make_iterator() with different r/v policies

()

Source from the content-addressed store, hash-verified

271
272
273def test_iterator_rvp():
274 """#388: Can't make iterators via make_iterator() with different r/v policies"""
275 assert list(m.make_iterator_1()) == [1, 2, 3]
276 assert list(m.make_iterator_2()) == [1, 2, 3]
277 assert not isinstance(m.make_iterator_1(), type(m.make_iterator_2()))
278
279
280def test_carray_iterator():

Callers

nothing calls this directly

Calls 3

listClass · 0.85
isinstanceFunction · 0.85
typeClass · 0.50

Tested by

no test coverage detected