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

PendingDeprecationWarning: the imp module is deprecated in favour of importlib #305

Closed
nedbat opened this issue May 9, 2014 · 2 comments
Labels
bug Something isn't working

Comments

@nedbat
Copy link
Owner

nedbat commented May 9, 2014

Originally reported by hugovk (Bitbucket: hugovk, GitHub: hugovk)


How to reproduce:

import warnings
warnings.simplefilter('default')
import coverage

Actual result on Python 3.4:

/usr/lib/python3.4/imp.py:32: PendingDeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  PendingDeprecationWarning)

No warning on Python 2.6, 2.7, 3.2, 3.3 or PyPy.

Expected result: No warnings.

This happens when running tests for the Pillow project on Python 3.4 on Travis CI. For example: https://travis-ci.org/python-imaging/Pillow/jobs/24084189

(It just so happens that Pillow's tests are set up so warnings cause failures, but we'll ignore them for import coverage for the time-being.)


@nedbat
Copy link
Owner Author

nedbat commented May 17, 2014

Fixed in the commits leading to aa1d5d23ca07 (bb)

@nedbat
Copy link
Owner Author

nedbat commented May 17, 2014

Original comment by hugovk (Bitbucket: hugovk, GitHub: hugovk)


Thanks!

@nedbat nedbat closed this as completed May 17, 2014
@nedbat nedbat added minor bug Something isn't working labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant