summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmlrpc.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #26873: xmlrpc now raises ResponseError on unsupported type tagsSerhiy Storchaka2016-05-041-0/+14
| | | | instead of silently return incorrect result.
* Issue #26402: Fix XML-RPC client retrying after server disconnectionMartin Panter2016-02-251-0/+37
| | | | | This is a regression introduced in 3.5 by revision eba80326ba53. Fix by Jelte Fennema, test case by me.
* Issue #26147: xmlrpc now works with strings not encodable with usedSerhiy Storchaka2016-01-201-6/+24
| | | | non-UTF-8 encoding.
* Issue #9006: Added tests for XML RPC with non-UTF-8 encoding.Serhiy Storchaka2016-01-181-3/+53
|
* Use assertRaisesRegex instead of deprecated assertRaisesRegexp.Serhiy Storchaka2015-04-101-1/+1
|\
| * Use assertRaisesRegex instead of deprecated assertRaisesRegexp.Serhiy Storchaka2015-04-101-2/+2
| |
* | Stop using a deprecated unittest.TestCase method.Brett Cannon2014-12-121-1/+1
| |
* | merge 3.4 (#16043)Benjamin Peterson2014-12-061-2/+23
|\ \ | |/
| * merge 3.3 (#16043)Benjamin Peterson2014-12-061-2/+23
| |\
| | * merge 3.2 (#16043)Benjamin Peterson2014-12-061-1/+22
| | |\
| | | * add a default limit for the amount of data xmlrpclib.gzip_decode will return ↵Benjamin Peterson2014-12-061-1/+22
| | | | | | | | | | | | | | | | (closes #16043)
* | | | Removed duplicated words in in comments and docs.Serhiy Storchaka2014-12-011-1/+1
|\ \ \ \ | |/ / /
| * | | Removed duplicated words in in comments and docs.Serhiy Storchaka2014-12-011-1/+1
| | | |
* | | | Issue #22031: Reprs now always use hexadecimal format with the "0x" prefixSerhiy Storchaka2014-07-221-1/+1
| | | | | | | | | | | | | | | | when contain an id in form " at 0x...".
* | | | Issue #20627: xmlrpc.client.ServerProxy is now a context manager.Brett Cannon2014-03-211-0/+18
|/ / / | | | | | | | | | Patch by Claudiu Popa.
* | | #19192: Give up on time.xmlrpc.com as an xmlrpc network test.R David Murray2013-10-111-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | time.xmlrpc.com has come and gone over the years, and has been gone again for a while. The test did test one thing that the current xmlrpc tests don't: the use of multiple levels of attribute names in the call. So in addition to removing the network test, we add a test in xmlrpc of dotted name access. There should also be a test for when dotted name access is disallowed, but that requires more extensive test harness refactoring, and in any case was not tested by the network test we are deleting, since it is a server-side setting. This is a slightly simplified version of a patch by Vajrasky Kok.
* | | #18453: merge with 3.3.Ezio Melotti2013-08-101-2/+10
|\ \ \ | |/ /
| * | #18453: fix unused variables in test_xmlrpc. Patch by Vajrasky Kok.Ezio Melotti2013-08-101-2/+10
| | |
* | | Issue #15767: Excise the remaining instances of ModuleNotFoundErrorBrett Cannon2013-07-041-2/+2
| | |
* | | Partially revert changeset #281857369a78 to make sure threads areBrett Cannon2013-06-131-1/+11
| | | | | | | | | | | | reaped in all situations.
* | | Spruce up test_xmlrpc by using ModuleNotFoundError and moving toBrett Cannon2013-06-131-22/+7
| | | | | | | | | | | | unittest.main().
* | | Issue #16717: get rid of socket.error, replace with OSErrorAndrew Svetlov2012-12-181-14/+14
|/ /
* | Add tests to marshall double with xmlrpc.client.Florent Xicluna2012-07-071-0/+16
| |
* | Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServerCharles-François Natali2012-02-181-6/+8
|\ \ | |/ | | | | upon malformed POST request.
| * Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServerCharles-François Natali2012-02-181-6/+8
| |\ | | | | | | | | | upon malformed POST request.
| | * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| | * Merged revisions 86533 via svnmerge fromAntoine Pitrou2010-11-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86533 | antoine.pitrou | 2010-11-19 21:07:52 +0100 (ven., 19 nov. 2010) | 3 lines Fix test_ssl_presence when ssl is not present ........
| | * Merged revisions 86523 via svnmerge fromSenthil Kumaran2010-11-181-21/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86523 | senthil.kumaran | 2010-11-19 01:08:48 +0800 (Fri, 19 Nov 2010) | 3 lines Code Changes as per review comments by Antoine Pitrou. ........
| | * Merged revisions 86514 via svnmerge fromSenthil Kumaran2010-11-181-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86514 | senthil.kumaran | 2010-11-18 23:00:53 +0800 (Thu, 18 Nov 2010) | 3 lines Fix Issue 9991: xmlrpc client ssl check faulty ........
| | * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* | | Closes #2979: add parameter 'use_builtin_types' to the SimpleXMLRPCServer.Florent Xicluna2011-12-091-0/+34
| | |
* | | Closes #13297: use bytes type to send and receive binary data through XMLRPC.Florent Xicluna2011-11-151-12/+57
|/ /
* | Cleanup xmlrpc: remove obsolete comments, unused imports. Add test for bytes ↵Florent Xicluna2011-10-301-1/+4
| | | | | | | | marshalling.
* | Closes #13291: NameError in xmlrpc package.Florent Xicluna2011-10-301-9/+49
| |
* | Remove duplication.Ezio Melotti2011-10-191-2/+2
| |
* | Issue #12931: Add a test with Unicode URI to test_xmlrpcVictor Stinner2011-09-221-0/+4
| |
* | test_xmlrpc: close the transport when doneVictor Stinner2011-01-031-0/+8
| | | | | | | | Fix a ResourceWarning(unclosed socket). Patch written by Nadeem Vawda.
* | #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and ↵Ezio Melotti2010-12-011-2/+2
| | | | | | | | assertRaisesRegex.
* | #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-13/+13
| |
* | Fix test_ssl_presence when ssl is not presentAntoine Pitrou2010-11-191-2/+2
| |
* | Code Changes as per review comments by Antoine Pitrou.Senthil Kumaran2010-11-181-22/+9
| |
* | Fix Issue 9991: xmlrpc client ssl check faultySenthil Kumaran2010-11-181-0/+25
| |
* | Merged revisions 80552-80556,80564-80566,80568-80571 via svnmerge fromVictor Stinner2010-04-281-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80552 | victor.stinner | 2010-04-27 23:46:03 +0200 (mar., 27 avril 2010) | 3 lines Issue #7449, part 1: fix test_support.py for Python compiled without thread ........ r80553 | victor.stinner | 2010-04-27 23:47:01 +0200 (mar., 27 avril 2010) | 1 line Issue #7449, part 2: regrtest.py -j option requires thread support ........ r80554 | victor.stinner | 2010-04-27 23:51:26 +0200 (mar., 27 avril 2010) | 9 lines Issue #7449 part 3, test_doctest: import trace module in test_coverage() Import trace module fail if the threading module is missing. test_coverage() is only used if test_doctest.py is used with the -c option. This commit allows to execute the test suite without thread support. Move "import trace" in test_coverage() and use test_support.import_module('trace'). ........ r80555 | victor.stinner | 2010-04-27 23:56:26 +0200 (mar., 27 avril 2010) | 6 lines Issue #7449, part 4: skip test_multiprocessing if thread support is disabled import threading after _multiprocessing to raise a more revelant error message: "No module named _multiprocessing". _multiprocessing is not compiled without thread support. ........ r80556 | victor.stinner | 2010-04-28 00:01:24 +0200 (mer., 28 avril 2010) | 8 lines Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py * Split Test.test_open() in 2 functions: test_open() and test_thread_open() * Skip test_open() and test_thread_open() if we are unable to find the C library * Skip test_thread_open() if thread support is disabled * Use unittest.skipUnless(os.name == "nt", ...) on test_GetLastError() ........ r80564 | victor.stinner | 2010-04-28 00:59:35 +0200 (mer., 28 avril 2010) | 4 lines Issue #7449, part 6: fix test_hashlib for missing threading module Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing(). ........ r80565 | victor.stinner | 2010-04-28 01:01:29 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, part 7: simplify threading detection in test_capi * Skip TestPendingCalls if threading module is missing * Test if threading module is present or not, instead of test the presence of _testcapi._test_thread_state ........ r80566 | victor.stinner | 2010-04-28 01:03:16 +0200 (mer., 28 avril 2010) | 4 lines Issue #7449, part 8: don't skip the whole test_asynchat if threading is missing TestFifo can be executed without the threading module ........ r80568 | victor.stinner | 2010-04-28 01:14:58 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, part 9: fix test_xmlrpclib for missing threading module * Skip testcases using threads if threading module is missing * Use "http://" instead of URL in ServerProxyTestCase if threading is missing because URL is not set in this case ........ r80569 | victor.stinner | 2010-04-28 01:33:58 +0200 (mer., 28 avril 2010) | 6 lines Partial revert of r80556 (Issue #7449, part 5, fix ctypes test) Rewrite r80556: the thread test have to be executed just after the test on libc_open() and so the test cannot be splitted in two functions (without duplicating code, and I don't want to duplicate code). ........ r80570 | victor.stinner | 2010-04-28 01:51:16 +0200 (mer., 28 avril 2010) | 8 lines Issue #7449, part 10: test_cmd imports trace module using test_support.import_module() Use test_support.import_module() instead of import to raise a SkipTest exception if the import fail. Import trace fails if the threading module is missing. See also part 3: test_doctest: import trace module in test_coverage(). ........ r80571 | victor.stinner | 2010-04-28 01:55:59 +0200 (mer., 28 avril 2010) | 6 lines Issue #7449, last part (11): fix many tests if thread support is disabled * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads ........
* | Merged revisions 78351 via svnmerge fromR. David Murray2010-02-241-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78351 | r.david.murray | 2010-02-22 19:24:49 -0500 (Mon, 22 Feb 2010) | 5 lines Issue 6292: for the moment at least, the test suite passes if run with -OO. Tests requiring docstrings are skipped. Patch by Brian Curtin, thanks to Matias Torchinsky for helping review and improve the patch. ........
* | Merged revisions 77727 via svnmerge fromEzio Melotti2010-01-241-2/+3
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line use assert[Not]IsInstance where appropriate ........
* | Merged revisions 74558 via svnmerge fromKristján Valur Jónsson2009-12-161-1/+75
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74558 | kristjan.jonsson | 2009-08-27 23:13:18 +0000 (fim., 27 ßg·. 2009) | 2 lines Issue 6654 Allow the XML-RPC server to use the HTTP request path when dispatching. Added a MultiPathXMLRPCServer class that uses the feature, plus unit tests. ........
* | Merged revisions 75962-75963 via svnmerge fromAntoine Pitrou2009-10-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75962 | antoine.pitrou | 2009-10-30 18:55:21 +0100 (ven., 30 oct. 2009) | 3 lines Try to fix transient refleaks in test_asynchat. ........ r75963 | antoine.pitrou | 2009-10-30 18:56:00 +0100 (ven., 30 oct. 2009) | 3 lines Try to fix transient refleaks in test_xmlrpc. ........
* | Make the XMLRCP CGIHandlerTestCase pass like it did before the change ofR. David Murray2009-10-261-2/+19
| | | | | | | | | | | | | | the test to use StringIO instead of a temp file. There may or may not be an underlying problem here, so this patch makes the test function as originally designed until a determination can be made as to whether or not there is an underlying bug here. See issue 7165 for discussion.
* | Note that a number of the changes listed below were not applicable to the ↵Nick Coghlan2009-10-181-36/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Py3k branch, and hence the corresponding files are unchanged in this checkin. This checkin is also the first time the environment checking in regrtest has been forward ported to the Py3k branch. This checkin causes test_xmlrpc to fail - see issue 7165 (it's a bug in the 3.x version of xmlrpc.server) I am also getting a failure in test_telnetlib, but it isn't clear yet if that is due to these changes. Recorded merge of revisions 75400-75401,75404,75406,75414,75416,75422,75425-75428,75435,75439,75441-75444,75447-75449,75451-75453,75455-75458,75460-75469,75471-75473,75475-75477,75479-75481,75483,75486-75489 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75400 | r.david.murray | 2009-10-14 23:58:07 +1000 (Wed, 14 Oct 2009) | 6 lines Enhanced Issue 7058 patch, which will not be backported. Refactors the code, adds checks for stdin/out/err, cwd, and sys.path, and adds a new section in the summary for tests that modify the environment (thanks to Ezio Melotti for that suggestion). ........ r75453 | nick.coghlan | 2009-10-17 16:33:05 +1000 (Sat, 17 Oct 2009) | 1 line Correctly restore sys.stdout in test_descr ........ r75456 | nick.coghlan | 2009-10-17 17:30:40 +1000 (Sat, 17 Oct 2009) | 1 line Enhancement to the new environment checking code to print the changed items under -vv. Also includes a small tweak to allow underscores in the names of resources. ........ r75457 | nick.coghlan | 2009-10-17 17:34:27 +1000 (Sat, 17 Oct 2009) | 1 line Formatting tweak so that before and after values are vertically aligned ........ r75458 | nick.coghlan | 2009-10-17 18:21:21 +1000 (Sat, 17 Oct 2009) | 1 line Check and revert expected sys.path alterations ........ r75461 | nick.coghlan | 2009-10-18 00:40:54 +1000 (Sun, 18 Oct 2009) | 1 line Restore original sys.path when running TTK tests ........ r75462 | nick.coghlan | 2009-10-18 01:09:41 +1000 (Sun, 18 Oct 2009) | 1 line Don't invoke reload(sys) and use StringIO objects instead of real files to capture stdin and stdout when needed (ensures all sys attributes remain unmodified after test_xmlrpc runs) ........ r75463 | nick.coghlan | 2009-10-18 01:23:08 +1000 (Sun, 18 Oct 2009) | 1 line Revert changes made to environment in test_httpservers ........ r75465 | nick.coghlan | 2009-10-18 01:45:52 +1000 (Sun, 18 Oct 2009) | 1 line Move restoration of the os.environ object into the context manager where it belongs ........ r75466 | nick.coghlan | 2009-10-18 01:48:16 +1000 (Sun, 18 Oct 2009) | 1 line Also check and restore identity of sys.path, sys.argv and os.environ rather than just their values (this picked up a few more misbehaving tests) ........ r75467 | nick.coghlan | 2009-10-18 01:57:42 +1000 (Sun, 18 Oct 2009) | 1 line Avoid replacing existing modules and sys.path in import tests ........ r75468 | nick.coghlan | 2009-10-18 02:19:51 +1000 (Sun, 18 Oct 2009) | 1 line Don't replace sys.path in test_site ........ r75481 | nick.coghlan | 2009-10-18 15:38:48 +1000 (Sun, 18 Oct 2009) | 1 line Using CleanImport to revert a reload of the os module doesn't work due to function registrations in copy_reg. The perils of reloading modules even for tests... ........ r75486 | nick.coghlan | 2009-10-18 20:29:10 +1000 (Sun, 18 Oct 2009) | 1 line Silence a deprecation warning by using the appropriate replacement construct ........ r75489 | nick.coghlan | 2009-10-18 20:56:21 +1000 (Sun, 18 Oct 2009) | 1 line Restore sys.path in test_tk ........
* | porting revision 74098 from trunk:Kristján Valur Jónsson2009-07-191-1/+5
| | | | | | | | | | http://bugs.python.org/issue6499 zlib/gzip may not be present for all builds. Make xmlrpclib gracefully not supporg gzip encoding in this case