summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmlrpc.py
Commit message (Collapse)AuthorAgeFilesLines
* Comment typoAndrew M. Kuchling2008-04-211-1/+1
|
* resolve issue 2014Skip Montanaro2008-04-181-0/+11
|
* Bug 1503: Get the test to pass on OSX. This should make the test moreNeal Norwitz2008-03-281-2/+10
| | | | | | | | | | | | reliable, but I'm not convinced it is the right solution. We need to determine if this causes the test to hang on any platforms or do other bad things. Even if it gets the test to pass reliably, it might be that we want to fix this in socket. The socket returned from accept() is different on different platforms (inheriting attributes or not) and we might want to ensure that the attributes (at least blocking) is the same across all platforms.
* Speed up the test by avoiding socket timeouts.Neal Norwitz2008-03-231-3/+5
|
* #1330538: Improve comparison of xmlrpclib.DateTime and datetime instances.Andrew M. Kuchling2008-02-231-47/+8
| | | | | | Remove automatic handling of datetime.date and datetime.time. This breaks backward compatibility, but python-dev discussion was strongly against this automatic conversion; see the bug for a link.
* socket.error doesn't have a headers attribute like ProtocolError.Neal Norwitz2008-01-271-10/+10
| | | | Handle that situation where we catch socket.errors.
* Try to handle socket.errors properly in is_unavailableNeal Norwitz2008-01-271-3/+7
|
* Catch socket errors that are often the cause of transient failures.Neal Norwitz2008-01-271-10/+10
| | | | | Many of these exceptions are due to resource unavailable, so the existing code should be able to handle many more spurious errors.
* The OS X buildbot had errors with the unavailable exceptions disabled. ↵Neal Norwitz2008-01-261-8/+2
| | | | Restore it.
* Use a condition variable (threading.Event) rather than sleeps and checking aNeal Norwitz2008-01-261-14/+19
| | | | | | | | | | | | | global to determine when the server is ready to be used. This slows the test down, but should make it correct. There was a race condition before where the server could have assigned a port, yet it wasn't ready to serve requests. If the client sent a request before the server was completely ready, it would get an exception. There was machinery to try to handle this condition. All of that should be unnecessary and removed if this change works. A NOTE was added as a comment about what needs to be fixed. The buildbots will tell us if there are more errors or if this test is now stable.
* Disabled test_xmlrpc:test_404. It's causing lots of false alarms.Christian Heimes2008-01-191-1/+2
| | | | I also disabled a test in test_ssl which requires network access to svn.python.org. This fixes a bug Skip has reported a while ago.
* Increase unit test coverage of SimpleXMLRPCServer.Georg Brandl2007-12-071-4/+132
| | | | Written for GHOP by Turkay Eren.
* Ignore test failures caused by 'resource temporarily unavailable'Facundo Batista2007-08-291-9/+15
| | | | | exceptions raised during FailingServerTestCase tests. [GSoC - Alan McIntyre]
* Ignore test failures caused by 'resource temporarily unavailable'Facundo Batista2007-08-271-12/+43
| | | | | | | exceptions raised in the test server thread, since SimpleXMLRPCServer does not gracefully handle them. Changed number of requests handled by tests server thread to one (was 2) because no tests require more than one request. [GSoC - Alan McIntyre]
* Catch ProtocolError exceptions and include the header information inFacundo Batista2007-08-211-25/+52
| | | | | test output (to make it easier to debug test failures caused by problems in the server). [GSoC - Alan McIntyre]
* Added a flag (_send_traceback_header) to the SimpleXMLRPCServer classFacundo Batista2007-08-171-8/+91
| | | | | | | | | that allows sending back exception/stack trace information about internal server errors (this flag defaults to False to avoid sending such information unless explicitly enabled). Added tests to verify behavior of this new feature (these tests are skipped on win32 because of problems with WSAEWOULDBLOCK). Renamed HTTPTestCase to SimpleServerTestCase. [GSoC - Alan McIntyre]
* Added tests for simple function calls and introspection that are runFacundo Batista2007-08-141-2/+102
| | | | | | against a SimpleXMLRPCServer in a separate thread. Because of problems with WSAEWOULDBLOCK (error 10035) being raised by the server on Windows, these new tests are skipped on win32. [GSoC - Alan McIntyre]
* Added tests for basic behavior of DateTime, Binary, and Fault classesFacundo Batista2007-07-131-1/+134
| | | | | | and the escape function. Check that marshalling recursive sequences & dicts raises TypeError. Check that marshalling out-of-range ints raises OverflowError [Alan McIntyre - GSoC]
* Patch #1070046: Marshal new-style objects like InstanceTypeMartin v. Löwis2006-11-191-0/+9
| | | | in xmlrpclib.
* Whitespace normalization.Tim Peters2005-12-251-1/+1
|
* [Bug #1164912] Ensure Datetime wrapper class .value attribute is an 8-bit ↵Andrew M. Kuchling2005-12-041-0/+10
| | | | string, not a Unicode string
* Add better datetime support to xmlrpclib module. Closes patch #1120353.Skip Montanaro2005-05-141-6/+38
|
* test_default_encoding_issues(): Fully restore sys.setdefaultencoding.Tim Peters2005-04-081-0/+7
| | | | | | | | | | test_site often failed under "regrtest.py -r", because this xmlrpc test left sys with a setdefaultencoding attribute, but loading site.py removes that attribute and test_site.py verifies the attribute is gone. Changed this test to get rid of sys.setdefaultencoding if it didn't exist when this test started. Don't know whether this is a bugfix (backport) candidate.
* fix decoding in _stringify to not depend on the default encodingFred Drake2005-02-111-0/+42
| | | | (closes SF bug #1115989)
* accept datetime.datetime instances when marshalling;Fred Drake2005-02-101-0/+17
| | | | dateTime.iso8601 elements still unmarshal into xmlrpclib.DateTime objects
* [Bug #841757] Exercise handling of Unicode stringsAndrew M. Kuchling2004-06-051-0/+2
|
* [Patch #628208] Test the 'nil' extensionAndrew M. Kuchling2003-04-251-0/+8
|
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+1
| | | | | | | | | | | imports e.g. test_support must do so using an absolute package name such as "import test.test_support" or "from test import test_support". This also updates the README in Lib/test, and gets rid of the duplicate data dirctory in Lib/test/data (replaced by Lib/email/test/data). Now Tim and Jack can have at it. :)
* added tests for long ints and ints where they are > 32 bits.Skip Montanaro2001-10-191-0/+14
| | | | should have been checked in as part of patch #470254.
* simple dumps/loads test case for xmlrpclibSkip Montanaro2001-10-011-0/+23