summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* run and fix enumerate start test cases #8636Benjamin Peterson2010-05-081-9/+14
|
* add underscoreBenjamin Peterson2010-05-081-1/+1
|
* r80967 introduced a new schemeBenjamin Peterson2010-05-081-2/+2
|
* Fix Issue8656 - urllib2 mangles file://-scheme URLsSenthil Kumaran2010-05-081-1/+2
|
* Issue #8571: Fix an internal error when compressing or decompressing aAntoine Pitrou2010-05-071-3/+59
| | | | | chunk larger than 1GB with the zlib module's compressor and decompressor objects.
* Testsuite for RFC3986 based parsing scenario. Related Issue1462525.Senthil Kumaran2010-05-071-6/+52
|
* adds handle_error(self):raise to test modules using asyncore to provide a ↵Giampaolo Rodolà2010-05-062-0/+9
| | | | clearer error message in case something goes wrong
* Fix asyncore issues 8573 and 8483: _strerror might throw ValueError; ↵Giampaolo Rodolà2010-05-061-0/+17
| | | | asyncore.__getattr__ cheap inheritance caused confusing error messages when accessing undefined class attributes; added an alias for __str__ which now is used as a fallback for __repr__
* `self` doesn't exist hereAntoine Pitrou2010-05-061-3/+3
|
* Issue #1533: test_range in test_builtin: fix test comment and add testMark Dickinson2010-05-051-2/+2
| | | | for rejection of small floats. Thanks Alexander Belopolsky.
* Fixed #4265: shutil.copyfile() was leaking file descriptors when disk fillsTarek Ziadé2010-05-051-1/+106
|
* In a number of places code still reversRonald Oussoren2010-05-058-62/+15
| | | | | | | | | to "sys.platform == 'mac'" and that is dead code because it refers to a platform that is no longer supported (and hasn't been supported for several releases). Fixes issue #7908 for the trunk.
* Issue #8600: fix test_gdb failures when gdb issues some spurious warnings.Antoine Pitrou2010-05-051-0/+5
|
* Bug 7755: audiotest.au is arguably copyrighted material, but definitely makesBarry Warsaw2010-05-052-1/+1
| | | | | Debian unhappy. The actual contents of the audio clip are unimportant, so replace it with something that we know is okay. Guido likes woodpeckers.
* Force exit using os._exit instead of sys.exit,Ronald Oussoren2010-05-051-1/+1
| | | | | this makes sure that the child does not continue testing.
* The C function used by uuid.uuid4 is broken onRonald Oussoren2010-05-051-0/+28
| | | | | | | | | | OSX 10.6 in that after os.fork() the parent and child generate the same sequence of UUIDs. This patch falls back to the the Python implementation on OSX 10.6 or later. Fixes issue #8621.
* Issue #8313: traceback.format_exception_only() encodes unicode message toVictor Stinner2010-05-051-0/+9
| | | | ASCII with backslashreplace error handler if str(value) failed
* Issue #1533: fix inconsistency in range function argument processing:Mark Dickinson2010-05-041-0/+50
| | | | | | | | | any non-float non-integer argument is now converted to an integer (if possible) using its __int__ method. Previously, only small arguments were treated this way; larger arguments (those whose __int__ was outside the range of a C long) would produce a TypeError. Patch by Alexander Belopolsky (with minor modifications).
* Issue #8567: Fix incorrect precedence of signals in Decimal module.Mark Dickinson2010-05-041-0/+25
| | | | | | | | | | When a Decimal operation raises multiple signals and more than one of those signals is trapped, the specification determines the order in which the signals should be handled. In many cases this order wasn't being followed, leading to the wrong Python exception being raised. This commit fixes those cases, and adds extra tests. The tests are only enabled when EXTENDEDERRORTESTS is True, since they involve rerunning each Decimal testcase several times.
* Issue #8404: Fix set operations on dictionary views.Alexandre Vassalotti2010-05-041-0/+61
|
* Issue #7865: The close() method of :mod:`io` objects should not swallowAntoine Pitrou2010-05-031-0/+44
| | | | | exceptions raised by the implicit flush(). Also ensure that calling close() several times is supported. Patch by Pascal Chambon.
* Issue #8576: logging updated to remove usage of find_unused_port().Vinay Sajip2010-05-031-4/+5
|
* Remove duplicate testAntoine Pitrou2010-05-011-21/+0
|
* Fix incorrect use of a list as the target of an 'except' clause in ↵Mark Dickinson2010-05-011-1/+1
| | | | test_decimal.py.
* Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format stringSenthil Kumaran2010-05-011-0/+13
|
* Issue #8576: Remove use of find_unused_port() in test_smtplib andAntoine Pitrou2010-04-302-7/+11
| | | | test_multiprocessing. Patch by Paul Moore.
* Issue #8464: tarfile.open(name, mode="w|") no longer createsLars Gustäbel2010-04-291-0/+18
| | | | files with execute permissions set.
* Fix style issues in test_sslAntoine Pitrou2010-04-281-138/+143
|
* Fixed Issue6312 - httplib fails with HEAD requests to pages with ↵Senthil Kumaran2010-04-281-0/+17
| | | | "transfer-encoding: chunked"
* Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module ↵Nick Coghlan2010-04-281-0/+71
| | | | containing the exception under test (original patch by Lennart Regebro)
* Issue #7449, last part (11): fix many tests if thread support is disabledVictor Stinner2010-04-2724-39/+94
| | | | | | * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads
* Issue #7449, part 10: test_cmd imports trace module using ↵Victor Stinner2010-04-271-2/+3
| | | | | | | | | | 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().
* Issue #7449, part 9: fix test_xmlrpclib for missing threading moduleVictor Stinner2010-04-271-3/+23
| | | | | | * 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
* Issue #7449, part 8: don't skip the whole test_asynchat if threading is missingVictor Stinner2010-04-271-79/+82
| | | | TestFifo can be executed without the threading module
* Issue #7449, part 7: simplify threading detection in test_capiVictor Stinner2010-04-271-10/+6
| | | | | | * 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
* Issue #7449, part 6: fix test_hashlib for missing threading moduleVictor Stinner2010-04-271-4/+2
| | | | Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing().
* Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newlineAntoine Pitrou2010-04-271-0/+4
| | | | before the certificate footer. Patch by Kyle VanderBeek.
* Issue #7449, part 4: skip test_multiprocessing if thread support is disabledVictor Stinner2010-04-271-3/+4
| | | | | | import threading after _multiprocessing to raise a more revelant error message: "No module named _multiprocessing". _multiprocessing is not compiled without thread support.
* Issue #7449 part 3, test_doctest: import trace module in test_coverage()Victor Stinner2010-04-271-1/+2
| | | | | | | | | 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').
* Issue #7449, part 2: regrtest.py -j option requires thread supportVictor Stinner2010-04-271-1/+5
|
* Issue #7449, part 1: fix test_support.py for Python compiled without threadVictor Stinner2010-04-271-4/+18
|
* socket.error can really happen here, and fix a possible NameErrorAntoine Pitrou2010-04-271-1/+4
|
* Qualify or remove or bare excepts. Simplify exception handling in places.Antoine Pitrou2010-04-271-193/+136
| | | | Remove uses of test_support.TestFailed.
* replace custom code with standard library functionality (HTTPServer.shutdown())Antoine Pitrou2010-04-271-48/+7
| | | | | + enable test that was never run (!) + make tests faster by lowering polling timeout
* Remove uses of find_unused_port() in test_ssl, and small cleanupsAntoine Pitrou2010-04-271-19/+17
|
* Issue #6656: fix locale.format_string to handle escaped percents and mappings.R. David Murray2010-04-261-0/+20
| | | | | | Refactors format_string. Includes tests for the two problems noted in the issue, but as far as I can see there are no other tests that confirm that format_string conforms to normal % formatting rules.
* Issue 8325: Improve regrtest --help text.R. David Murray2010-04-261-26/+33
|
* Issue #2302: Fix a race condition in SocketServer.BaseServer.shutdown,Antoine Pitrou2010-04-251-0/+25
| | | | | | where the method could block indefinitely if called just before the event loop started running. This also fixes the occasional freezes witnessed in test_httpservers.
* Replace a Lock with a better suited Event.Antoine Pitrou2010-04-251-6/+5
|
* Issue #5103: SSL handshake would ignore the socket timeout and blockAntoine Pitrou2010-04-242-4/+98
| | | | indefinitely if the other end didn't respond.