summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Add tests for the urllib[2] vulnerability. Change to raise exceptions.guido@google.com2011-03-282-0/+35
|
* Add .hgeol file and fix newlines in the 2.5 branch.Georg Brandl2011-03-051-31/+31
|
* #6990: clear threading.local's key only after its thread state is removed:Philip Jenvey2009-09-291-1/+40
| | | | | | fixes local subclasses leaving old state around after a ref cycle GC which could be recycled by new locals (backported from r75123)
* Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loopLars Gustäbel2009-03-221-1/+24
| | | | | | | | forever on incomplete input. That caused tarfile.open() to hang when used with mode 'r' or 'r:bz2' and a fileobj argument that contained no data or partial bzip2 compressed data. (backported from r70523)
* Revert patch for #1706039, as it can crash the interpreter.Martin v. Löwis2008-12-231-42/+0
|
* Backport of r67908:Martin v. Löwis2008-12-231-0/+2
| | | | | Added test case to ensure attempts to read from a file opened for writing fail.
* Issue #1706039: Support continued reading from a file even afterMartin v. Löwis2008-12-131-0/+42
| | | | EOF was hit.
* Backport of r66703:Martin v. Löwis2008-12-131-0/+6
| | | | | Issue #3863: Disabled a unit test of fork being called from a thread when running on platforms known to exhibit OS bugs when attempting that.
* Issue #4228: Pack negative values the same way as 2.4Martin v. Löwis2008-12-131-0/+13
| | | | in struct's L format.
* Issue #4084: fix bug in handling of NaNs in Decimal.max, Decimal.min,Mark Dickinson2008-12-111-0/+17
| | | | Decimal.max_mag and Decimal.min_mag.
* Backport issue 4597 to python 2.5.3: Fixed several opcodes that weren't alwaysJeffrey Yasskin2008-12-101-0/+14
| | | | propagating exceptions.
* Backported issue #4589 to Python 2.5.3: Propagated an exception thrown by aJeffrey Yasskin2008-12-101-0/+30
| | | | context manager's __exit__ method's result while it's being converted to bool.
* #4317: Fix an Array Bounds Read in imageop.rgb2rgb8.Amaury Forgeot d'Arc2008-11-181-1/+2
| | | | Backport of r67266
* backport r67246 from the trunkBenjamin Peterson2008-11-171-9/+50
|
* backport r67077 from the trunk: parser module now correctly validates ↵Benjamin Peterson2008-11-031-0/+2
| | | | relative imports
* Issue #4176: Pickle would crash the interpreter when a __reduce__ functionAmaury Forgeot d'Arc2008-10-301-0/+23
| | | | | | | does not return an iterator for the 4th and 5th items. (sequence-like and mapping-like state) Backport of r67049.
* backport r66689: imageop could segfault due to poor argument validationBenjamin Peterson2008-09-301-7/+62
|
* Backport of r66677: _lsprof crasher when a bad external timer is used duringBrett Cannon2008-09-291-2/+17
| | | | garbage collection of a Profiler object.
* #3967: Correct a crash in count() and find() methods of string-like objects.Amaury Forgeot d'Arc2008-09-261-0/+16
| | | | | | | For example: "".count("xxxx", sys.maxint, 0) Backport of r66631.
* make sure to give a 'as' and 'with' parser warning even after import ↵Benjamin Peterson2008-09-251-1/+34
| | | | statements #3936
* backport r66496: integer overflow in _hashopenssl #3886Benjamin Peterson2008-09-181-2/+16
|
* Issue #3804: Added test for Issue #2222.Hirokazu Yamamoto2008-09-081-0/+7
| | | | Reviewed by Benjamin Peterson.
* Issue #3751: str.rpartition would perform a left-partition when called withAmaury Forgeot d'Arc2008-09-011-0/+5
| | | | | | a unicode argument. Backport of r66119
* let Windows bots pass on test_threadingBenjamin Peterson2008-08-231-1/+2
|
* Reverted r65902. See ↵Hirokazu Yamamoto2008-08-201-7/+3
| | | | http://mail.python.org/pipermail/python-checkins/2008-August/073116.html
* Backport r65900: fixed get_file_system in test_os.py ('path' is unicode on ↵Hirokazu Yamamoto2008-08-201-5/+8
| | | | py3k and ansi on trunk)
* Backport of r64767 from trunkGregory P. Smith2008-08-171-0/+11
| | | | | | Fixes Issue #3309: Fix bz2.BZFile iterator to release its internal lock properly when raising an exception due to the bz2file being closed. Prevents a deadlock.
* Backport of r65032 from trunkGregory P. Smith2008-08-171-1/+78
| | | | | | Fixes Issue #874900: after an os.fork() call the threading module state is cleaned up in the child process to prevent deadlock and report proper thread counts if the new process uses the threading module.
* - Issue #3537: Fix an assertion failure when an empty but presized dictGeorg Brandl2008-08-111-0/+11
| | | | object was stored in the freelist. (backport from r65637.)
* (backport of r61652 and r61665 from trunk)Gregory P. Smith2008-08-041-0/+29
| | | | | Issue #1471: Arguments to fcntl.ioctl are no longer broken on 64-bit OpenBSD and similar platforms due to sign extension.
* Security patches from Apple: prevent int overflow when allocating memoryNeal Norwitz2008-07-314-9/+154
|
* #2242: utf7 decoding crashes on bogus input on some Windows/MSVC versionsAntoine Pitrou2008-07-251-0/+3
|
* Issue #3360: Fix incorrect parsing of '020000000000.0'.Mark Dickinson2008-07-161-0/+4
| | | | This is a backport of r65005.
* Backport of 64903.Brett Cannon2008-07-131-0/+1
|
* Backport r62627 + r62744 from trunk to fix issue 2632.Gregory P. Smith2008-07-061-0/+27
| | | | | | - Issue #2632: Prevent socket.read(bignumber) from over allocating memory in the common case when the data is returned from the underlying socket in increments much smaller than bignumber.
* Backport of r64677.Brett Cannon2008-07-021-1/+1
|
* #Issue3088 in-progress: Race condition with instances of classes derived ↵Amaury Forgeot d'Arc2008-07-011-0/+29
| | | | | | | | | | | | | from threading.local: When a thread touches such an object for the first time, a new thread-local __dict__ is created, and the __init__ method is run. But a thread switch can occur here; if the other thread touches the same object, it installs another __dict__; when the first thread resumes, it updates the dictionary of the second... This is the deep cause of the failures in test_multiprocessing involving "managers" objects. Backport of r64601.
* #3242: fix a crash in "print", if sys.stdout is set to a custom object,Amaury Forgeot d'Arc2008-07-011-1/+20
| | | | | | whose write() method installs another sys.stdout. Backport of r64633
* Issue 3110: Crash with weakref subclass,Amaury Forgeot d'Arc2008-06-161-1/+40
| | | | | | | | | | | seen after a "import multiprocessing.reduction" An instance of a weakref subclass can have attributes. If such a weakref holds the only strong reference to the object, deleting the weakref will delete the object. In this case, the callback must not be called, because the ref object is being deleted! Backport of r34309
* #3117: backport r55087, fixes segfault with lambda (None,): None.Georg Brandl2008-06-151-0/+1
|
* Backport r62724 from trunk. Fixes issue 2791. subprocess.Popen.communicateGregory P. Smith2008-06-011-0/+16
| | | | now closes its stdout and stderr fds as soon as it is finished with them.
* Patch #2111: Avoid mmap segfault when modifying a PROT_READ block.Martin v. Löwis2008-05-231-0/+17
|
* Issue #2670: urllib2.build_opener() failed when two handlersAmaury Forgeot d'Arc2008-04-221-0/+6
| | | | | | derive the same default base class. Backport of r62463.
* Merge r62235 from trunk.Gregory P. Smith2008-04-091-0/+5
| | | | | Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive. It tried to allocate negative or zero memory. That fails.
* Fix a reference leak found by Georg, when compiling a class nested in ↵Amaury Forgeot d'Arc2008-03-281-0/+4
| | | | | | | | another class. Test is run with "regrtest.py -R:: test_compile" Backport of r62015
* Issue2495: tokenize.untokenize did not insert space between two consecutive ↵Amaury Forgeot d'Arc2008-03-272-1/+9
| | | | | | | | string literals: "" "" becomes """", which is invalid code. Backport of r61979.
* Issue #2482: Make sure that the coefficient of a Decimal instanceMark Dickinson2008-03-251-0/+16
| | | | | is stored as a str instance rather than a unicode instance. Backported from Python 2.6 (see r61904).
* Decimal.sqrt(0) failed when the context was notMark Dickinson2008-03-251-0/+6
| | | | explicitly supplied.
* #1477: ur'\U0010FFFF' used to raise in narrow unicode builds.Amaury Forgeot d'Arc2008-03-241-2/+15
| | | | | | | Corrected the raw-unicode-escape codec to use UTF-16 surrogates in this case, like the unicode-escape codec does. Backport of r61793 and r61853
* Issue #2432: give DictReader the dialect and line_num attributesGeorg Brandl2008-03-211-10/+12
| | | | | advertised in the docs. (backport from r61712)