Migrated issue, originally created by Jakub Gocławski (jgoclawski)
Since pytest now displays DeprecationWarning by default, our tests on Python 3.7. are now full of:
#!python
/usr/local/lib/python3.7/site-packages/alembic/util/langhelpers.py:91: DeprecationWarning: `formatargspec` is deprecated since Python 3.5. Use `signature` and the `Signature` object directly
formatvalue=lambda x: '=' + x)
The warning is displayed 100+ times for a small project.
Seems like a followup of #458, but inspect.formatargspec is still used twice in langhelpers.py.
For now our workaround is to set:
#!ini
[tool:pytest]
filterwarnings =
always
ignore::DeprecationWarning:alembic[.*]
Migrated issue, originally created by Jakub Gocławski (jgoclawski)
Since pytest now displays DeprecationWarning by default, our tests on Python 3.7. are now full of:
The warning is displayed 100+ times for a small project.
Seems like a followup of #458, but
inspect.formatargspecis still used twice inlanghelpers.py.For now our workaround is to set: