summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* ensure the last line has a trailing newline #8782Benjamin Peterson2010-05-211-0/+12
|
* fix nameBenjamin Peterson2010-05-211-1/+1
|
* use addCleanupBenjamin Peterson2010-05-211-30/+27
|
* return NotImplemented from Mapping when comparing to a non-mapping #8729Benjamin Peterson2010-05-211-1/+48
|
* Turned out that if you used explicit relative import syntaxBrett Cannon2010-05-201-0/+12
| | | | | | | | | (e.g. from .os import sep) and it failed, import would still try the implicit relative import semantics of an absolute import (from os import sep). That's not right, so when level is negative, only do explicit relative import semantics. Fixes issue #7902. Thanks to Meador Inge for the patch.
* libpython.py: fix support of non-BMP unicode charactersVictor Stinner2010-05-201-8/+2
| | | | | | | | Forward port some code from Python3: * join surrogate pairs if sizeof(Py_UNICODE)==2 * Enable non-BMP test on narrow builds using u"\U0001D121" instead of unichr(0x1D121)
* #8759: Fixed user paths in sysconfig for posix and os2 schemesTarek Ziadé2010-05-191-1/+10
|
* Fix issue #8573 (asyncore._strerror bug): fixed os.strerror typo; included ↵Giampaolo Rodolà2010-05-181-0/+9
| | | | NameError in the tuple of expected exception; added test case for asyncore._strerror.
* Issue #7079: Fix a possible crash when closing a file object while usingAntoine Pitrou2010-05-171-1/+11
| | | | it from another thread. Patch by Daniel Stutzbach.
* Use with open() as fo: ... instead of try: fo = open(...) finally: fo.close()Victor Stinner2010-05-161-6/+4
| | | | fo is not set if the open() fails.
* use TestCase skip methodBenjamin Peterson2010-05-151-4/+4
|
* If the timeout is exceeded, count the tests as skipped instead of justStefan Krah2010-05-151-6/+4
| | | | issuing a warning.
* test_site was failing under darwin for non-framework builds because a test wasBrett Cannon2010-05-131-1/+2
| | | | assuming framework-specific site-packages directories were being used.
* Revert changeset r81150 which helped diagnose issue #8423 on some OS X buildbot.Florent Xicluna2010-05-131-17/+4
|
* Improve test feedback to troubleshoot issue #8423 on OS X.Florent Xicluna2010-05-131-4/+17
|
* Better test skipping, with message in the log.Florent Xicluna2010-05-131-8/+14
|
* Revert the additional OS X information (r81140). Keep the endianness ↵Florent Xicluna2010-05-131-5/+1
| | | | information.
* Add sensible information about the OS X platform to diagnose issue #8423:Florent Xicluna2010-05-131-1/+6
| | | | test_pep277 fails on "x86 Tiger" buildbot but not on "PPC Tiger".
* Fix verb tense in skip message.Victor Stinner2010-05-131-1/+1
| | | | Ooops, merge also r80334 (patch by r.david.murray)
* Issue #8422, test_genericpath: skip the creation of a directory with an invalidVictor Stinner2010-05-131-0/+4
| | | | | | | UTF name on Mac OS X because the OS deny it (the name have to be a valid UTF8 string). Merge r80163 from py3k branch.
* Fix Issue8657 - adding git and git+ssh as know schemes.Senthil Kumaran2010-05-131-1/+6
|
* Fix unused variable in test_factorial.Mark Dickinson2010-05-121-1/+1
|
* Removed the assertion that dispatcher.connected attribute must be False ↵Giampaolo Rodolà2010-05-121-6/+2
| | | | after a single connect() call. Solaris and FreeBSD buildbots failures showed how connect() can succeed even in a single call. All bo failures should definitively be fixed now.
* Issue #8681: Make the zlib module's error messages more informative whenAntoine Pitrou2010-05-111-0/+7
| | | | the zlib itself doesn't give any detailed explanation.
* Issue #8672: Add a zlib test ensuring that an incomplete stream can beAntoine Pitrou2010-05-111-0/+13
| | | | | handled by a decompressor object without errors (it returns incomplete uncompressed data).
* Issue #8490: adds a more solid test suite for asyncoreGiampaolo Rodolà2010-05-101-1/+275
|
* Issue #8644: Improve accuracy of timedelta.total_seconds method.Mark Dickinson2010-05-091-1/+8
| | | | (Backport of r80979 to py3k.) Thanks Alexander Belopolsky.
* Revert r81012. buildbot problems and its questionable of me to evenGregory P. Smith2010-05-091-197/+0
| | | | | | add this to trunk while we're on the way to 2.7rc1. When fixed this can go into py3k first. Sorry.
* Fixes [issue7245] Better Ctrl-C support in pdb.Gregory P. Smith2010-05-081-0/+197
|
* Skip signal handler re-installation if it is not necessary. Issue 8354.Jean-Paul Calderone2010-05-081-18/+75
|
* 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
|