Miro Hrončok <m...@hroncok.cz> added the comment: Adding the reset to the context manager:
with warnings.catch_warnings(record=True) as caught: warnings.resetwarnings() eps[0] Or even better explicitly: with warnings.catch_warnings(record=True) as caught: warnings.filterwarnings("default", category=DeprecationWarning) eps[0] Makes it pass and makes the tests framework happy. I still don't understand why it is filtered, but other tests in the file (e.g. test_entry_points_dict_construction) already o this, so I will submit a pull request. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44451> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com