Add test.test_support.transient_internet . Returns a context manager that
commit8e222fa221b630222de98b75a5b341f8e5312bc4
authorbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 13 Mar 2007 02:34:09 +0000 (13 02:34 +0000)
committerbrett.cannon <brett.cannon@6015fed2-1504-0410-9fe1-9d1591cc4771>
Tue, 13 Mar 2007 02:34:09 +0000 (13 02:34 +0000)
tree9350a8287723996fd228bf6bbc7bbeebcab29a1a
parentc76ea26b584e35a3115035707310556f316d4982
Add test.test_support.transient_internet .  Returns a context manager that
nests test.test_support.TransientResource context managers that capture
exceptions raised when the Internet connection is flaky.

Initially using in test_socket_ssl but should probably be expanded to cover any
test that should not raise the captured exceptions if the Internet connection
works.

git-svn-id: http://svn.python.org/projects/python/trunk@54315 6015fed2-1504-0410-9fe1-9d1591cc4771
Lib/test/test_socket_ssl.py
Lib/test/test_support.py