]> granicus.if.org Git - python/commit
Add test.test_support.transient_internet . Returns a context manager that
authorBrett Cannon <bcannon@gmail.com>
Tue, 13 Mar 2007 02:34:09 +0000 (02:34 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 13 Mar 2007 02:34:09 +0000 (02:34 +0000)
commit41d4e32353a546036d76c154169917f5f754ce09
tree639cdacc6cf63d28c7d9c26e0745be3c28153502
parent192cd567bdb7791560629ea43365cd1079f2fc54
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.
Lib/test/test_socket_ssl.py
Lib/test/test_support.py