R. David Murray <rdmur...@bitdance.com> added the comment:

@Anton: That's what I was guessing.  If we had a unit test in test_webbrowser 
that did the same thing, we'd have seen the resource warning when running the 
tests and fixed it.  However, it looks like there aren't *any* tests for 
webbrowser, not even in test_sundry (which just makes sure modules without 
tests are importable).

So adding a test that will trigger this resource warning requires setting up a 
test_webbrowser file first, even before we get to the problem of how to test 
something that wants to start up a web browser...(but that should be solvable 
with unittest.mock, I think).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15447>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to