summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Bug #2137: Remove test_struct.test_crasher, which was meaningfulMartin v. Löwis2008-02-181-4/+0
| | | | only on 32-bit systems.
* Revert 60793 for test_array; on a 64-bit system,Martin v. Löwis2008-02-151-17/+0
| | | | MemoryError was not guaranteed.
* Added checks for integer overflows, contributed by Google. Some areMartin v. Löwis2008-02-142-0/+21
| | | | | only available if asserts are left in the code, in cases where they can't be triggered from Python code.
* Backport the nts() function from the trunk. This fixes problems withLars Gustäbel2008-02-112-1/+7
| | | | | the xstar format that puts extra fields inside the space that POSIX has reserved for the prefix field.
* Backport relevant part of issue 2021 fix (r60695): Support with statement ↵Nick Coghlan2008-02-111-3/+12
| | | | properly in tempfile.NamedTemporaryFile
* Backport test_resource fix from trunk to stop it crashing on UbuntuNick Coghlan2008-02-111-14/+19
|
* issue 2045: Infinite recursion when printing a subclass of defaultdict,Amaury Forgeot d'Arc2008-02-081-0/+23
| | | | | | if default_factory is set to a bound method. Backport of r60663.
* No need to emit co_lnotab item when both offsets are zeros.Amaury Forgeot d'Arc2008-02-041-0/+9
| | | | | | r60579 broke a test test_compile, which seems to test an "implementation detail" IMO. Also test that this correction does not impact the debugger.
* backport of r60575 (issue #1750076): Debugger did not step on every ↵Amaury Forgeot d'Arc2008-02-041-3/+48
| | | | | | | | | | | | | | iteration of a while statement. The mapping between bytecode offsets and source lines (lnotab) did not contain an entry for the beginning of the loop. Now it does, and the lnotab can be a bit larger: in particular, several statements on the same line generate several entries. However, this does not bother the settrace function, which will trigger only one 'line' event. The lnotab seems to be exactly the same as with python2.4.
* Try harder to provoke the exception since the ia64 buildbot stillNeal Norwitz2008-01-281-0/+2
| | | | doesn't reliably produce an exception.
* Sync up with trunk. Try to flush repeatedly to ensure the exception is raised.Neal Norwitz2008-01-271-5/+7
|
* Backport 60342:Neal Norwitz2008-01-271-2/+5
| | | | | | Try to prevent this test from being flaky. We might need a sleep in here which isn't as bad as it sounds. The close() *should* raise an exception, so if it didn't we should give more time to sync and really raise it.
* Backport r58453:Neal Norwitz2008-01-271-2/+12
| | | | | | | | | | Let the O/S supply a port if none of the default ports can be used. This should make the tests more robust at the expense of allowing tests to be sloppier by not requiring them to cleanup after themselves. (It will legitamitely help when running two test suites simultaneously or if another process is already using one of the predefined ports.) This will hopefully fix test_asynchat.
* Backport 60334:Neal Norwitz2008-01-271-0/+3
| | | | | On some systems (e.g., Ubuntu on hppa) the flush() doesn't (always) cause the exception, but the close() does.
* #1920: when considering a block starting by "while 0", the compiler ↵Amaury Forgeot d'Arc2008-01-241-0/+9
| | | | | | | | | | | | | | | | | optimized the whole construct away, even when an 'else' clause is present:: while 0: print("no") else: print("yes") did not generate any code at all. Now the compiler emits the 'else' block, like it already does for 'if' statements. Backport of r60265.
* Fix failing test_mailbox on CygwinAndrew M. Kuchling2008-01-241-0/+1
|
* Backport r60208, skip some tests for huge passwd/group files.Guido van Rossum2008-01-232-0/+6
|
* Backport of r60190:Gregory P. Smith2008-01-221-0/+19
| | | | | | - Fix Issue #1703448: A joined thread could show up in the threading.enumerate() list after the join() for a brief period until it actually exited.
* Remove extra test that was accidentally backported from the trunkMark Dickinson2008-01-211-8/+0
|
* Issue 1678380: fix a bug identifying -0.0 and 0.0Mark Dickinson2008-01-211-0/+21
|
* Issue #1882: when compiling code from a string, encoding cookies in theGeorg Brandl2008-01-211-1/+9
| | | | | second line of code were not always recognized correctly. (backport from rev. 60168)
* Bug 1277: make Maildir use the user-provided factory instead of hard-wiring ↵Andrew M. Kuchling2008-01-191-0/+14
| | | | MaildirMessage.
* This got fixed in r60056.Guido van Rossum2008-01-181-17/+0
|
* Backport r55080:Guido van Rossum2008-01-183-33/+78
| | | | | | Fix for #1303614 and #1174712: - __dict__ descriptor abuse for subclasses of built-in types - subclassing from both ModuleType and another built-in types
* Fix Decimal hash in Python 2.5 maintenance branch so that hash(x) == ↵Mark Dickinson2008-01-081-0/+10
| | | | | | hash(int(x)) for any integral Decimal instance x.
* Decimal module and test cases were updated to their state ofFacundo Batista2008-01-08148-2342/+60269
| | | | | | | | | the art. It now complies latest specification and tests. The only difference of this version with the one in the trunk is that a small subset that hash tests were removed, because they rely on modifications to core hash() function (see issue 1182 for further details).
* Backport r59758.Guido van Rossum2008-01-051-0/+5
| | | | | Patch #1637: fix urlparse for URLs like 'http://x.com?arg=/foo'. Fix by John Nagle.
* Issue #1735: TarFile.extractall() now correctly sets directoryLars Gustäbel2008-01-041-0/+28
| | | | | | permissions and times. (backport from r59712)
* Issue #1700, reported by Nguyen Quan Son, fix by Fredruk Lundh:Guido van Rossum2008-01-031-0/+30
| | | | | Regular Expression inline flags not handled correctly for some unicode characters.
* Backport r59480.Alexandre Vassalotti2007-12-131-0/+10
| | | | Fix issue #1313119.
* Issue #1531: Read fileobj from the current offset, do not seek toLars Gustäbel2007-12-011-2/+41
| | | | | | the start. (backport from r59260)
* Backport of r59241: str.decode fails on very long strings on 64bit platforms.Amaury Forgeot d'Arc2007-11-301-4/+6
| | | | PyArgs_ParseTuple t# and w# formats truncated the lengths to 32bit.
* Issue #1445: Fix a SystemError when accessing the ``cell_contents``Amaury Forgeot d'Arc2007-11-241-0/+12
| | | | | | attribute of an empty cell object. Now a ValueError is raised. Backport of r59170.
* Backport of a fix for the __loader__.get_data() test.Brett Cannon2007-11-231-0/+1
|
* Backport of r59082 (doctest and using __loader__.get_data()).Brett Cannon2007-11-211-0/+18
|
* Backport r59049:Walter Dörwald2007-11-191-0/+44
| | | | | | Fix for #1444: utf_8_sig.StreamReader was (indirectly through decode()) calling codecs.utf_8_decode() with final==True, which falled with incomplete byte sequences. Fix and test by James G. Sack.
* Backport r59047: Fix typo in comment.Walter Dörwald2007-11-191-1/+1
|
* Backport for issue1265 (pdb bug with "with" statement).Amaury Forgeot d'Arc2007-11-131-2/+47
| | | | | | | | | | | | | | | | | | | | When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx is called with a GeneratorExit exception set. This leads to funny results if the sys.settrace function itself makes use of generators. A visible effect is that the settrace function is reset to None. Another is that the eventual "finally" block of the generator is not called. It is necessary to save/restore the exception around the call to the trace function. This happens a lot with py3k: isinstance() of an ABCMeta instance runs def __instancecheck__(cls, instance): """Override for isinstance(instance, cls).""" return any(cls.__subclasscheck__(c) for c in {instance.__class__, type(instance)}) which lets an opened generator expression each time it returns True. And the problem can be reproduced in 2.5 with pure python code.
* Issue 1704621. Fix segfaults in list_repeat() and list_inplace_repeat().Guido van Rossum2007-11-121-0/+7
| | | | The C changes aren't quite the same as the patch given there; the test is.
* Fix issue #1705170 (backport from trunk)Nick Coghlan2007-11-071-0/+17
|
* Backport r58868:Gregory P. Smith2007-11-061-0/+125
| | | | | Fixes Issue 1385: The hmac module now computes the correct hmac when using hashes with a block size other than 64 bytes (such as sha384 and sha512).
* Backport 58348: use a reliable host in the test.Gregory P. Smith2007-10-061-4/+1
|
* issue1140: Guido's patch from revision 58098 (2.6) applied to 2.5.Sean Reifscheider2007-09-171-0/+25
|
* Bug #1153: repr.repr() now doesn't require set and dictionary itemsGeorg Brandl2007-09-121-0/+10
| | | | | to be orderable to properly represent them. (backport from rev. 58122)
* Patch #1031213: Decode source line in SyntaxErrors back to its originalMartin v. Löwis2007-09-041-0/+26
| | | | source encoding.
* Bug #1709599: Run test_1565150 only if the file system is NTFS.Martin v. Löwis2007-08-301-4/+14
|
* backport r57626Skip Montanaro2007-08-281-0/+11
|
* TarFile.__init__() no longer fails if no name argument is passed andLars Gustäbel2007-08-281-5/+19
| | | | | | the fileobj argument has no usable name attribute (e.g. StringIO). (backported from r57616)
* backport of r57378 to fix bug 1725856Gregory P. Smith2007-08-241-0/+16
|
* Revert the fix for #1548891, it broke backwards compatibility with arbitrary ↵Georg Brandl2007-08-081-22/+0
| | | | | | | read buffers. Fixes #1730114. (backport from rev. 56830)