Skip to content
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

change collections.abc import to fix deprecation warnings on python 3.7 #3355

Merged
merged 4 commits into from
Apr 2, 2018
Merged

change collections.abc import to fix deprecation warnings on python 3.7 #3355

merged 4 commits into from
Apr 2, 2018

Conversation

irmen
Copy link
Contributor

@irmen irmen commented Mar 29, 2018

This fixes the deprecation warnings from Python 3.7 related to importing abcs from the collections module, mentioned in issue #3339

I couldn't fix the same for using the deprecated imp module, there's a bit too much wizardry going on with it in _pytest/assertion/rewrite.py ...

@coveralls
Copy link

coveralls commented Mar 29, 2018

Coverage Status

Coverage increased (+0.04%) to 92.84% when pulling 3fc2c94 on irmen:py37deprfixes into f1c9efc on pytest-dev:master.

@nicoddemus
Copy link
Member

@irmen thanks! I checked out your fork to fix the linting issues myself, but then realized that the imports should go into compat.py which is our version compatibility layer.

Thanks!

@nicoddemus
Copy link
Member

And oops, I realized I switched the versions. 😅

I will push another commit in a minute.

@nicoddemus nicoddemus merged commit 9a62ebf into pytest-dev:master Apr 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants