Skip to content

replace deprecated imp with importlib #2897

@orbeckst

Description

@orbeckst

Expected behavior

No deprecation warnings for standard library imports.

Actual behavior

chemlib and H5MD raise

DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

(This is due to the mock in #2723 and #2787 #2894 (open – will be corrected there).)

Code to reproduce the behavior

Run pytest with visible warnings.

Current version of MDAnalysis

  • Which version are you using? (run python -c "import MDAnalysis as mda; print(mda.__version__)") current dev
  • Which version of Python (python -V)? 3.7
  • Which operating system? macOS

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions