diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-26 08:26:00 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-01-26 08:26:00 (GMT) |
commit | 08b50eb3d30fc24bd7d32efbf74d328a97ab3b47 (patch) | |
tree | 8a21f7a78ae0fb8513cd9031256860e8b236d937 | |
parent | 7c1be2a3b191127745a8f58fb3d9115b5ffbde93 (diff) | |
download | cpython-08b50eb3d30fc24bd7d32efbf74d328a97ab3b47.zip cpython-08b50eb3d30fc24bd7d32efbf74d328a97ab3b47.tar.gz cpython-08b50eb3d30fc24bd7d32efbf74d328a97ab3b47.tar.bz2 |
The OS X buildbot had errors with the unavailable exceptions disabled. Restore it.
-rw-r--r-- | Lib/test/test_xmlrpc.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index 738db8a..99a2dda 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -340,18 +340,12 @@ def http_server(evt, numrequests): PORT = None evt.set() -# TODO(nnorwitz): 25-Jan-2008 since we now notify the test when the server -# is totally ready to serve, this function should not be necessary. -# It is disabled by returning False. If the buildbots don't show any -# failures for this test over the next week, all the code associated -# with this function should be removed. The code that needs to be removed -# is this function, the NOTE below, and the entire except body that -# calls this function. +# This function prevents errors like: +# <ProtocolError for localhost:57527/RPC2: 500 Internal Server Error> def is_unavailable_exception(e): '''Returns True if the given ProtocolError is the product of a server-side exception caused by the 'temporarily unavailable' response sometimes given by operations on non-blocking sockets.''' - return False # sometimes we get a -1 error code and/or empty headers if e.errcode == -1 or e.headers is None: |