New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeprecationWarning for inspect.formatargspec #507
Comments
Changes by Jakub Gocławski (@jgoclawski):
|
Michael Bayer (@zzzeek) wrote: I really thought this had been reported, although I might be thinking of a similar issue in dogpile. Here we need to port the patch from SQLAlchemy https://bitbucket.org/zzzeek/sqlalchemy/commits/e81102fbd7e03713ffd0e25b39d, PRs can work here. |
Changes by Michael Bayer (@zzzeek):
|
@zzzeek Any update on fixing these? |
looks like it's here: https://gerrit.sqlalchemy.org/#/c/sqlalchemy/alembic/+/933/ have had no time to go through outstanding gerrits ready for merge |
need to add collections.abc as well as that also emits deprecation warnings |
Resolved remaining Python 3 deprecation warnings, covering the use of inspect.formatargspec() with a vendored version copied from the Python standard library, importing collections.abc above Python 3.3 when testing against abstract base classes, fixed one occurrence of log.warn(), as well as a few invalid escape sequences. Add DeprecationWarning to the test suite as an error raise as has been the case within SQLAlchemy for some time now. Fixes: sqlalchemy#507 Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com> Change-Id: I121121b3d2dd90e6f3c9b16dec2fc80b9699c400 Pull-request: https://bitbucket.org/zzzeek/alembic/pull-requests/85
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.formatargspec
is still used twice inlanghelpers.py
.For now our workaround is to set:
The text was updated successfully, but these errors were encountered: