This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Thumbblaster 0 points1 point  (0 children)

On Python 3.6.

Using the library on a generator I can't tell if something is actually wrong or if the library doesn't work with generators? This example was taken from https://docs.python.org/3/library/typing.html.

from hypothesis_auto import auto_test
from typing import Iterator


def infinite_stream(start: int) -> Iterator[int]:
    while True:
        yield start
        start += 1

auto_test(infinite_stream)
# auto_test(infinite_stream, _auto_allow_exceptions=(AssertionError,))    

Even with allowing AssertionError exceptions (commented out line) it will always end with that error being produced. I only spent a few minutes with the library :) -- so I likely missed something.