Antoine Pitrou added the comment: Note that in issue #21409, sys.meta_path isn't "empty", it is actually None.
Another possibility is to drop those warnings only when the interpreter is shutting down (it would be easy to add a private API in sys to get that information). ---------- nosy: +pitrou _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21052> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com