def test_iterator_passthrough():
    """#181: iterator passthrough did not compile"""
    from pybind11_tests.issues import iterator_passthrough

    if list(iterator_passthrough(iter([3, 5, 7, 9, 11, 13, 15
                                       ]))) != [3, 5, 7, 9, 11, 13, 15]:
        raise AssertionError
Example #2
0
def test_iterator_passthrough():
    """#181: iterator passthrough did not compile"""
    from pybind11_tests.issues import iterator_passthrough

    assert list(iterator_passthrough(iter([3, 5, 7, 9, 11, 13,
                                           15]))) == [3, 5, 7, 9, 11, 13, 15]
Example #3
0
def test_iterator_passthrough():
    """#181: iterator passthrough did not compile"""
    from pybind11_tests.issues import iterator_passthrough

    assert list(iterator_passthrough(iter([3, 5, 7, 9, 11, 13, 15]))) == [3, 5, 7, 9, 11, 13, 15]