Miro Hrončok <m...@hroncok.cz> added the comment:

I've added warnings.resetwarnings() to the test. it makes it pass.

It says:


Warning -- warnings.filters was modified by test_importlib
  Before: (140568295281984, [('default', None, <class 'DeprecationWarning'>, 
'__main__', 0), ('ignore', None, <class 'DeprecationWarning'>, None, 0), 
('ignore', None, <class 'PendingDeprecationWarning'>, None, 0), ('ignore', 
None, <class 'ImportWarning'>, None, 0), ('ignore', None, <class 
'ResourceWarning'>, None, 0)], [('default', None, <class 'DeprecationWarning'>, 
'__main__', 0), ('ignore', None, <class 'DeprecationWarning'>, None, 0), 
('ignore', None, <class 'PendingDeprecationWarning'>, None, 0), ('ignore', 
None, <class 'ImportWarning'>, None, 0), ('ignore', None, <class 
'ResourceWarning'>, None, 0)])
  After:  (140568295281984, [('default', None, <class 'DeprecationWarning'>, 
'__main__', 0), ('ignore', None, <class 'DeprecationWarning'>, None, 0), 
('ignore', None, <class 'PendingDeprecationWarning'>, None, 0), ('ignore', 
None, <class 'ImportWarning'>, None, 0), ('ignore', None, <class 
'ResourceWarning'>, None, 0)], []) 
test_importlib failed (env changed)

----------

_______________________________________
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

Reply via email to