lycantropos / hypothesis_sqlalchemy

hypothesis strategies for generating SQLAlchemy objects
MIT License
28 stars 8 forks source link

Python 3.7 Crash on import #7

Closed dave-brennan closed 5 years ago

dave-brennan commented 5 years ago

Using with Python 3.7 results in crash on import.

Sample code:

from hypothesis import strategies from hypothesis_sqlalchemy import tables

Stack trace:

Traceback (most recent call last): File "example_failure.py", line 6, in from hypothesis_sqlalchemy import tables File "/usr/local/lib/python3.7/site-packages/hypothesis_sqlalchemy/tables/init.py", line 2, in from .tables import factory File "/usr/local/lib/python3.7/site-packages/hypothesis_sqlalchemy/tables/tables.py", line 7, in from hypothesis_sqlalchemy import columns File "/usr/local/lib/python3.7/site-packages/hypothesis_sqlalchemy/columns.py", line 104, in def non_all_unique_lists_factory(lists: Strategy = lists_factory() File "/usr/local/lib/python3.7/site-packages/hypothesis_sqlalchemy/columns.py", line 87, in lists_factory max_size=max_size) TypeError: lists() got an unexpected keyword argument 'average_size'

lycantropos commented 5 years ago

It looks like you are using hypothesis with version >=4.0.0.

From changelog:

The average_size argument was a no-op and has been removed.