summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_xmlrpc.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in the Lib directory (GH-28775)Christian Clauss2021-10-061-1/+1
| | | | | Fix typos in the Lib directory as identified by codespell. Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-45229: Remove test_main in many tests (GH-28405)Serhiy Storchaka2021-09-191-10/+4
| | | | | | | | | Instead of explicitly enumerate test classes for run_unittest() use the unittest ability to discover tests. This also makes these tests discoverable and runnable with unittest. load_tests() can be used for dynamic generating tests and adding doctests. setUpModule(), tearDownModule() and addModuleCleanup() can be used for running code before and after all module tests.
* bpo-43433: Preserve query and fragment in the URL of the server in ↵Serhiy Storchaka2021-03-291-1/+39
| | | | ServerProxy. (GH-25057)
* bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)Christian Heimes2020-11-201-2/+2
| | | Signed-off-by: Christian Heimes <christian@python.org>
* bpo-40275: Use new test.support helper submodules in tests (GH-20824)Hai Shi2020-06-251-2/+3
|
* bpo-40275: Adding threading_helper submodule in test.support (GH-20263)Hai Shi2020-05-271-1/+2
|
* bpo-40275: Avoid importing socket in test.support (GH-19603)Serhiy Storchaka2020-04-251-1/+2
| | | | | | * Move socket related functions from test.support to socket_helper. * Import socket, nntplib and urllib.error lazily in transient_internet(). * Remove importing multiprocess.
* bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)Serhiy Storchaka2019-08-081-8/+17
| | | | They now return NotImplemented for unsupported type of the other operand.
* bpo-30458: Disallow control chars in http URLs. (GH-12755)Gregory P. Smith2019-05-011-2/+7
| | | Disallow control chars in http URLs in urllib.urlopen. This addresses a potential security problem for applications that do not sanity check their URLs where http request headers could be injected.
* bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929)Serhiy Storchaka2019-03-051-7/+5
|
* bpo-35153: Add headers parameter to xmlrpc.client.ServerProxy (GH-10308)Cédric Krier2019-02-191-1/+62
| | | Allow to add HTTP headers to XML-RPC requests sent to the server.
* bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)Vajrasky Kok2018-12-171-3/+2
|
* bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362)Serhiy Storchaka2018-06-041-1/+3
| | | It depended on a global variable set by other tests.
* Trivial cleanups following bpo-31370 (#3649)Antoine Pitrou2017-09-181-7/+1
| | | | | | * Trivial cleanups following bpo-31370 * Also cleanup the "importlib._bootstrap_external" module
* bpo-31234: Join threads in tests (#3572)Victor Stinner2017-09-141-2/+6
| | | | Call thread.join() on threads to prevent the "dangling threads" warning.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-7/+1
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* Stop test_xmlrpc from writing to sys.stderr (#3359)Christian Heimes2017-09-061-0/+4
| | | | | | | | One test case of test_xmlrpc uses HTTPServer with a subclass of BaseHTTPRequestHandler. The BaseRequestHandler class logs to sys.stderr by default. Override log_message() to not clobber test output. Signed-off-by: Christian Heimes <christian@python.org>
* Change assertRaises to assertRaisesRegex in test_xmlrpc (#481)Dillon Brock2017-03-051-3/+3
|
* bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError (#260)Petr Motejlek2017-03-011-1/+89
| | | | (or any other exception) to exception(s) raised in the dispatched methods. Patch by Petr Motejlek.
* bpo-7769: enable xmlrpc.server.SimpleXMLRPCDispatcher.register_function used ↵Xiang Zhang2017-02-281-6/+7
| | | | as decorator (GH-231)
* Issue #26885: xmlrpc now supports unmarshalling additional data types usedSerhiy Storchaka2016-09-111-0/+49
| | | | by Apache XML-RPC implementation for numerics and None.
* #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-1/+1
| | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* Backed out changeset af29d89083b3 (closes #25548) (closes #27498)Benjamin Peterson2016-07-141-2/+2
|
* Issue #25548: Showing memory address of class objects in replKushal Das2016-06-041-2/+2
|
* Issue #26873: xmlrpc now raises ResponseError on unsupported type tagsSerhiy Storchaka2016-05-041-0/+14
|\ | | | | | | instead of silently return incorrect result.
| * Issue #26873: xmlrpc now raises ResponseError on unsupported type tagsSerhiy Storchaka2016-05-041-0/+14
| | | | | | | | instead of silently return incorrect result.
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
| |
* | Issue #23277: Remove more unused sys and os imports.Serhiy Storchaka2016-04-241-1/+0
|/
* 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
| |