You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
======================================================== ERRORS ========================================================
__________________________________ ERROR collecting tests/test_import_csv_to_graph.py __________________________________
tests/test_import_csv_to_graph.py:8: in <module>
from hypothesis_csv.strategies import csv as csv_strategy
../../../../Library/Caches/pypoetry/virtualenvs/my-app-HgQtD8X_-py3.10/lib/python3.10/site-packages/hypothesis_csv/strategies.py:1: in <module>
from hypothesis_csv import _csv
../../../../Library/Caches/pypoetry/virtualenvs/my-app-HgQtD8X_-py3.10/lib/python3.10/site-packages/hypothesis_csv/_csv.py:6: in <module>
from hypothesis_csv._data_rows import *
../../../../Library/Caches/pypoetry/virtualenvs/my-app-HgQtD8X_-py3.10/lib/python3.10/site-packages/hypothesis_csv/_data_rows.py:21: in <module>
def get_columns(draw, columns: isa(collections.Iterable)):
E AttributeError: module 'collections' has no attribute 'Iterable'
=============================================== short test summary info ================================================
ERROR tests/test_import_csv_to_graph.py - AttributeError: module 'collections' has no attribute 'Iterable'
The fix is to replace collections.Iterable and similar lookups with collections.abc.….
The text was updated successfully, but these errors were encountered:
* Fix#3 by importing collections.abc.Iterable
Fixes compatibility with Python 3.10 by changing references to the
deprecated and now removed collections.Iterable alias
to collections.abc.Iterable.
* Remove hypothesis.Settings(use_coverage=…) decorator.
The hypothesis.Settings(use_coverage=…) setting was removed in
Hypothesis 4.0.0:
<https://hypothesis.readthedocs.io/en/latest/changes.html?highlight=use_coverage#settings>
* Increase length of test CSV to better detect column type in tests
* Removed unused import of `hypothesis.settings`
* Only require meza for testing
Hi there! Just thought I'd let you know that the deprecated abstract base classes aliases were removed in Python 3.10 (change) and this is causing an
AttributeError
wherevercollections.Iterable
etc. are used.The fix is to replace
collections.Iterable
and similar lookups withcollections.abc.…
.The text was updated successfully, but these errors were encountered: