'proves that calling calling next() on a stopped iterator doesn\'t
hang.'

def test_stop_iteration_doesnt_block(self):

    import sh
    py = create_tmp_test('\nprint("cool")\n')
    p = python(py.name, _iter=True)
    for i in range(100):
        try:
            next(p)
        except StopIteration:
            pass
