Opened 8 years ago

Closed 8 years ago

#26880 closed Cleanup/optimization (duplicate)

test_module_loading.py imports the imp-library which raises PendingDeprecationWarning — at Version 1

Reported by: Mads Jensen Owned by: nobody
Component: Testing framework Version: 1.9
Severity: Normal Keywords: library deprecation
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

in tests/utils_tests/test_module_loading.py there's an import which raises a PendingDeprecationWarning.

    import imp

Would it be a good idea to wrap this import inside a six.PY3:

    if six.PY3:
        import import_module as imp
    else:
        import imp

Change History (1)

comment:1 by Tim Graham, 8 years ago

Description: modified (diff)
Resolution: duplicate
Status: newclosed

Duplicate of #21628. I don't think the solution is as simple as you describe but if you get something working, please send a PR.

Note: See TracTickets for help on using tickets.
Back to Top