Commit Graph

29 Commits

Author SHA1 Message Date
Serhiy Storchaka 40348acc18
bpo-45229: Remove test_main in many tests (GH-28405)
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.
2021-09-19 15:27:33 +03:00
Zachary Ware 73ffd3f203 bpo-31724: Skip test_xmlrpc_net (GH-3921)
With the upgrade of buildbot.python.org from Buildbot 0.8.x to 0.9.x,
the xmlrpc interface has been removed.  This test is now skipped until
it can be rewritten to query a suitable substitute.
2017-10-08 01:31:23 -05:00
Serhiy Storchaka e437a10d15 Issue #23277: Remove unused imports in tests. 2016-04-24 21:41:02 +03:00
Berker Peksag 1e8ee9b380 Issue #23277: Remove unused sys and os imports
Patch by Jon Dufresne.
2016-04-24 07:31:42 +03:00
Serhiy Storchaka 8f8ec92de8 Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.  Fixed
shebang lines in the unittestgui and checkpip scripts.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka b992a0e102 Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.  Fixed
shebang line to use python3 executable in the unittestgui script.
2014-01-16 17:15:49 +02:00
Zachary Ware 101d9e7250 Issue 19572: More silently skipped tests explicitly skipped. 2013-12-08 00:44:27 -06:00
Zachary Ware 9fe6d86709 Issue 19572: More silently skipped tests explicitly skipped. 2013-12-08 00:20:35 -06:00
R David Murray aaf17b33a5 #19192: Give up on time.xmlrpc.com as an xmlrpc network test.
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.
2013-10-11 12:09:51 -04:00
Andrew Svetlov 0832af6628 Issue #16717: get rid of socket.error, replace with OSError 2012-12-18 23:10:48 +02:00
Georg Brandl 87903c14bc Merge with 3.2. 2012-06-24 20:07:40 +02:00
Georg Brandl 26af3b223f Refer test_xmlrpc_net to the new buildbot URL at buildbot.python.org. 2012-06-24 20:06:54 +02:00
Antoine Pitrou 1439c77417 Merge test_xmlrpc_net fixes (issue #13434) 2011-11-28 21:15:22 +01:00
Antoine Pitrou f1c141b7fb Fix resource warning in test_xmlrpc_net 2011-11-28 21:14:46 +01:00
Antoine Pitrou 5a88c38fab Issue #13434: skip the time.xmlrpc.com test, and reenable the buildbot test. 2011-11-28 21:12:24 +01:00
Raymond Hettinger 57d1a887e7 Fix imports from collections.abc 2011-02-23 00:46:28 +00:00
Antoine Pitrou 8d9a4e66c2 Disable test_python_builders in test_xmlrpc_net, following buildbot upgrade on python.org 2010-11-10 22:36:43 +00:00
Brett Cannon c84dc9d018 Fix test_xmlrpc_net to no longer fail since there are no more buildbots for trunk. 2010-07-05 22:11:16 +00:00
Benjamin Peterson 90f5ba538b convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
Antoine Pitrou 305c6b8fee Since time.xmlrpc.com is unreliable, add another test to test_xmlrpc_net 2009-11-03 17:13:59 +00:00
Benjamin Peterson c9c0f201fe convert old fail* assertions to assert* 2009-06-30 23:06:06 +00:00
Benjamin Peterson b42dab3c6d revert r64092 because http://xmlrpc.com is back up 2008-06-11 02:37:01 +00:00
Benjamin Peterson 4dea1eb366 Temporarily disable test_xmlrpc_net because xmlrpc.com is broken 2008-06-10 21:23:05 +00:00
Georg Brandl 2442015af2 Create http package. #2883. 2008-05-26 16:32:26 +00:00
Georg Brandl 38eceaaf0c Create xmlrpc package. Issue #2886. 2008-05-26 11:14:17 +00:00
Benjamin Peterson ee8712cda4 #2621 rename test.test_support to test.support 2008-05-20 21:35:26 +00:00
Neal Norwitz f7276c9b0e Be more forgiving if we get an error, there are lots of potential socket errors 2008-04-01 07:38:41 +00:00
Neal Norwitz 64018ae057 Skip test if socket gets reset, the problem is on the other side. 2008-03-24 05:51:45 +00:00
Jeremy Hylton 5d8a88a442 Change xmlrpclib to use the newer httplib interface.
Note that it's hard to test xmlrpclib, because the server it attempts
to connect to doesn't seem to support the expected interfaces.  Many
of the links via xmlrpc.com are dead, so I couldn't find another
server to use for tests.
2007-08-14 16:47:39 +00:00