summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* - Issue #3537: Fix an assertion failure when an empty but presized dictGeorg Brandl2008-08-111-0/+11
| | | | object was stored in the freelist.
* Copy reduce() to _functools so to have functools.reduce() not raise a warningBrett Cannon2008-08-091-1/+44
| | | | from usage under -3.
* accept issue 3436Skip Montanaro2008-08-081-0/+33
|
* Add imp.reload(). This to help with transitioning to 3.0 the reload() built-inBrett Cannon2008-08-061-0/+19
| | | | has been removed there.
* Remove duplicate importMark Dickinson2008-08-061-1/+0
|
* Bug 3228: take a test from Niels Gustaebel's patch, and based on his patch, ↵Andrew M. Kuchling2008-08-051-6/+29
| | | | check for having os.stat available
* Issue #1481296: (again!) Make conversion of a float NaN to an int orMark Dickinson2008-08-041-1/+2
| | | | | | | long raise ValueError instead of returning 0. Also, change the error message for conversion of an infinity to an integer, replacing 'long' by 'integer', so that it's appropriate for both long(float('inf')) and int(float('inf')).
* Bug 3228: Explicitly supply the file mode to avoid creating executable files,Andrew M. Kuchling2008-08-041-1/+27
| | | | | and add corresponding tests. Possible 2.5 backport candidate
* Preemptively backport the relevant parts of r65420Antoine Pitrou2008-08-021-0/+3
|
* Correct a crash when two successive unicode allocations fail with a MemoryError:Amaury Forgeot d'Arc2008-07-311-0/+14
| | | | | | | | | the freelist contained half-initialized objects with freed pointers. The comment /* XXX UNREF/NEWREF interface should be more symmetrical */ was copied from tupleobject.c, and appears in some other places. I sign the petition.
* Remove a dummy test that was checked in by mistakeAmaury Forgeot d'Arc2008-07-311-8/+0
|
* #3479: unichr(2**32) used to return u'\x00'.Amaury Forgeot d'Arc2008-07-311-0/+1
| | | | | | The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int. (why doesn't gcc issue a truncation warning in this case?)
* Security patches from Apple: prevent int overflow when allocating memoryNeal Norwitz2008-07-314-9/+161
|
* Rename testSum to testFsum and move it to proper place in test_math.pyMark Dickinson2008-07-311-97/+96
|
* Backport test.support.fcmp() from 3.0 to silence -3 warnings.Brett Cannon2008-07-311-5/+4
|
* Alter recipe to show how to call izip_longest() withRaymond Hettinger2008-07-311-2/+1
| | | | both a keyword argument and star arguments.
* #2542: now that issubclass() may call arbitrary code,Amaury Forgeot d'Arc2008-07-311-1/+34
| | | | make sure that PyErr_ExceptionMatches returns 0 when an exception occurs there.
* I mess up again; BufferError inherits StandardErrorBenjamin Peterson2008-07-301-1/+1
|
* add BufferError to the exception hieracrchyBenjamin Peterson2008-07-301-0/+1
|
* Rename math.sum to math.fsumMark Dickinson2008-07-302-8/+8
|
* Neaten-up the itertools recipes.Raymond Hettinger2008-07-301-6/+4
|
* More modifications to tests for math.sum: replace the PythonMark Dickinson2008-07-291-39/+39
| | | | | version of msum by a version using a different algorithm, and use the new float.fromhex method to specify test results exactly.
* Remove math.sum tests related to overflow, special values, and behaviourMark Dickinson2008-07-271-65/+10
| | | | | near the extremes of the floating-point range. (The behaviour of math.sum should be regarded as undefined in these cases.)
* Issue #3449: Update decimal module to use most recent specificationMark Dickinson2008-07-27142-322/+471
| | | | (v. 1.68) and tests (v. 2.58) from IBM.
* Close issue 3437 - missing state change when Allow lines are processed.Skip Montanaro2008-07-271-0/+69
| | | | Adds test cases which use Allow: as well.
* disable some failing tests in test_locale due to a bug in locale.py.Antoine Pitrou2008-07-261-15/+14
| | | | this should fix the failures on the solaris buildbot.
* Fix more buildbot failures on test_locale.Antoine Pitrou2008-07-261-5/+10
|
* try to fix most buildbot failures on test_locale + add a debug output for ↵Antoine Pitrou2008-07-261-47/+69
| | | | the solaris buildbot
* convert test_locale to unittest, and add a mechanism to override localconv() ↵Antoine Pitrou2008-07-251-119/+262
| | | | results for further testing (#1864, #1222)
* #3394: zipfile.writestr doesn't set external attributes, so files are ↵Antoine Pitrou2008-07-251-0/+13
| | | | extracted mode 000 on Unix
* Issue 1592: Better error reporting for operations on closed shelves.Raymond Hettinger2008-07-251-0/+15
|
* #2242: utf7 decoding crashes on bogus input on some Windows/MSVC versionsAntoine Pitrou2008-07-251-0/+3
|
* remove unneeded importBenjamin Peterson2008-07-221-1/+0
|
* don't use assert statementBenjamin Peterson2008-07-211-1/+1
|
* Issue2378: pdb would delete free variables when stepping into a class statement.Amaury Forgeot d'Arc2008-07-211-0/+18
| | | | | The problem was introduced by r53954, the correction is to restore the symmetry between PyFrame_FastToLocals and PyFrame_LocalsToFast
* Save the whole of sys.modules instead of using an import tracker.Georg Brandl2008-07-201-21/+4
| | | | | This, when merged to py3k, will fix the spurious buildbot failure in test_urllib2 ("<urlopen error unknown url type: do>").
* Fix misspeeld method name (negative)Neal Norwitz2008-07-201-1/+1
|
* Clean-up itertools docs and recipes.Raymond Hettinger2008-07-191-55/+17
|
* Fix compress() recipe in docs to use itertools.Raymond Hettinger2008-07-191-3/+3
|
* #3319: don't raise ZeroDivisionError if number of rounds is soGeorg Brandl2008-07-191-1/+5
| | | | low that benchtime is zero.
* #3303: fix crash with invalid Py_DECREF in strcoll().Georg Brandl2008-07-191-1/+10
|
* Add recipe to the itertools docs.Raymond Hettinger2008-07-191-0/+18
|
* Improve accuracy of gamma test functionRaymond Hettinger2008-07-191-5/+3
|
* Fix issue 3411: default float format spec fails on negative numbers.Eric Smith2008-07-191-0/+6
|
* Deprecate the sunaudio module for removal in Python 3.0. The sunau module ↵Brett Cannon2008-07-182-11/+13
| | | | can provide similar functionality.
* Replace all map(None, a) with list(a).Georg Brandl2008-07-182-4/+4
|
* now that test_lib2to3 actually works and isn't extremely slow, we don't need ↵Benjamin Peterson2008-07-182-7/+3
| | | | the lib2to3 resource
* backport test_fileioBenjamin Peterson2008-07-181-0/+240
|
* Correct attribute name.Georg Brandl2008-07-181-1/+1
|
* Remove duplicate entry in __all__.Georg Brandl2008-07-181-1/+1
|