Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
DeprecationWarning for inspect.formatargspec #507
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.
For now our workaround is to set:
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.
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 <firstname.lastname@example.org> Change-Id: I121121b3d2dd90e6f3c9b16dec2fc80b9699c400 Pull-request: https://bitbucket.org/zzzeek/alembic/pull-requests/85