summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* this is better written using assertRaisesBenjamin Peterson2009-03-241-6/+2
|
* comply with the evilJavaNamingScheme for attribute namesBenjamin Peterson2009-03-231-2/+2
| | | | It seems my love of PEP 8 overrode the need for consistentcy
* implement test skipping and expected failuresBenjamin Peterson2009-03-231-6/+124
| | | | patch by myself #1034053
* Issue #4688: Add a heuristic so that tuples and dicts containing onlyAntoine Pitrou2009-03-233-0/+194
| | | | | | | | | untrackable objects are not tracked by the garbage collector. This can reduce the size of collections and therefore the garbage collection overhead on long-running programs, depending on their particular use of datatypes. (trivia: this makes the "binary_trees" benchmark from the Computer Language Shootout 40% faster)
* AttributeError can be thrown during recursion errorsBenjamin Peterson2009-03-221-1/+1
|
* Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loopLars Gustäbel2009-03-221-0/+25
| | | | | | 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.
* Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms.Mark Dickinson2009-03-202-6/+40
| | | | Backport of r70459.
* * Add clearer comment to initialization code.Raymond Hettinger2009-03-191-0/+7
| | | | | | * Add optional argument to popitem() -- modeled after Anthon van der Neut's C version. * Fix method markup in docs.
* fix strange errors when setting attributes on tracebacks #4034Benjamin Peterson2009-03-181-8/+0
|
* Fix bug in _insert_thousands_sep: too much zero padding could beMark Dickinson2009-03-181-0/+22
| | | | added for 'n' formats with non-repeating thousands-separator.
* Issue #2110: Add support for thousands separator and 'n' format specifierMark Dickinson2009-03-171-1/+97
| | | | to Decimal __format__ method.
* Fix bug in Decimal __format__ method that swapped left and rightMark Dickinson2009-03-171-0/+6
| | | | alignment.
* Unicode format tests weren't actually testing unicode. This was probably due ↵Eric Smith2009-03-141-51/+51
| | | | to the original backport from py3k.
* Issue 5237, Allow auto-numbered replacement fields in str.format() strings.Eric Smith2009-03-142-6/+66
| | | | | | | | | | | | | | | | | For simple uses for str.format(), this makes the typing easier. Hopfully this will help in the adoption of str.format(). For example: 'The {} is {}'.format('sky', 'blue') You can mix and matcth auto-numbering and named replacement fields: 'The {} is {color}'.format('sky', color='blue') But you can't mix and match auto-numbering and specified numbering: 'The {0} is {}'.format('sky', 'blue') ValueError: cannot switch from manual field specification to automatic field numbering Will port to 3.1.
* Issue #1222: locale.format() bug when the thousands separator is a space ↵Antoine Pitrou2009-03-141-1/+77
| | | | character.
* Require implementations for warnings.showwarning() support the 'line' argument.Brett Cannon2009-03-111-37/+0
| | | | | | Was a DeprecationWarning for not supporting it since Python 2.6. Closes issue #3652.
* For collections.deque() objects, expose the maxlen parameter as a read-only ↵Raymond Hettinger2009-03-101-0/+10
| | | | attribute.
* Small optimization for corner case where maxlen==0.Raymond Hettinger2009-03-101-1/+18
|
* mmap.resize for anonymous map is not working yet, so changed to real file ↵Hirokazu Yamamoto2009-03-051-15/+5
| | | | mapping...
* Issue #5385: Fixed mmap crash after resize failure on windows.Hirokazu Yamamoto2009-03-051-1/+33
| | | | | Now uses NULL instead of INVALID_HANDLE_VALUE as invalid map handle because CreateFileMapping returns NULL when error occurs.
* Fix some more bugs caused by the backport from 3.x for importlib.Brett Cannon2009-03-041-12/+12
| | | | | Do a more exact copy of the final 3.x code to resolve bugs and add appropriate tests.
* Backport 70140, 70141, 70143, and 70144.Raymond Hettinger2009-03-031-0/+17
| | | | | Adds tests, switches from list to deque, fixes __reduce__ which was unnecessarily copying __keys.
* Beef-up tests.Raymond Hettinger2009-03-031-3/+6
|
* Backport PEP 372: OrderedDict()Raymond Hettinger2009-03-031-3/+192
|
* give httplib.IncompleteRead a more sane repr #4308Benjamin Peterson2009-03-021-0/+19
|
* Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} withJeffrey Yasskin2009-02-282-25/+22
| | | | | | POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing a POP_TOP on each conditional and sometimes allows the peephole optimizer to skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
* Issue #1733986: Fixed mmap crash in accessing elements of second map objectHirokazu Yamamoto2009-02-281-0/+28
| | | | with same tagname but larger size than first map. (Windows)
* Issue #5386: mmap.write_byte didn't check map size, so it could cause bufferHirokazu Yamamoto2009-02-281-0/+32
| | | | overrun.
* Fix a bug where code was trying to index an int. Left over from the situationBrett Cannon2009-02-271-3/+6
| | | | | | from using str.rpartition to str.rindex. Closes Issue5213.
* remove deprecated symtable.Symbol methodsBenjamin Peterson2009-02-261-16/+0
|
* Expand upon test_site.test_s_option to try to debug its failure.Brett Cannon2009-02-241-1/+2
|
* Backport 69934: Register xrange() as a Sequence.Raymond Hettinger2009-02-241-0/+3
|
* Revert debugging statements, culprit is possibly test_distutils (see #5316)Antoine Pitrou2009-02-221-2/+1
|
* Try to make sense of the test_site buildbot failuresAntoine Pitrou2009-02-221-1/+2
|
* Issue #5341: Fix a variety of spelling errors.Mark Dickinson2009-02-217-10/+10
|
* Fix keyword arguments for itertools.count().Raymond Hettinger2009-02-211-0/+2
| | | | Step arg without a start arg was ignored.
* Issue 5176: special-case string formatting in BINARY_MODULO implementation. ↵Collin Winter2009-02-201-0/+6
| | | | This shows a modest (1-3%) speed-up in templating systems, for example.
* Inline coefficients in gamma(). Add reflection formula. Add comments.Raymond Hettinger2009-02-191-10/+18
|
* Add some cross-references to the docs. Simplify the python code equivalent ↵Raymond Hettinger2009-02-191-3/+3
| | | | for izip(). Supply an optional argument for the nth() recipe.
* Add keyword arg support to itertools.repeat().Raymond Hettinger2009-02-191-0/+1
|
* Add keyword arg support to itertools.compress().Raymond Hettinger2009-02-191-0/+1
|
* Issue #5282: Fixed mmap resize on 32bit windows and unix. When offset > 0,Hirokazu Yamamoto2009-02-171-0/+21
| | | | The file was resized to wrong size.
* Issue #5292: Fixed mmap crash on its boundary access m[len(m)].Hirokazu Yamamoto2009-02-171-0/+4
|
* Add GC support to count() objects. Backport candidate.Raymond Hettinger2009-02-161-0/+5
|
* Issue #5260: Various portability and standards compliance fixes, optimizationsMark Dickinson2009-02-151-6/+6
| | | | | | | and cleanups in Objects/longobject.c. The most significant change is that longs now use less memory: average savings are 2 bytes per long on 32-bit systems and 6 bytes per long on 64-bit systems. (This memory saving already exists in py3k.)
* #5179: don't leak PIPE fds when child execution fails.Georg Brandl2009-02-141-0/+16
|
* this needn't be a shebang lineBenjamin Peterson2009-02-141-1/+1
|
* we're no longer using CVS, so this doesn't have to be binaryBenjamin Peterson2009-02-141-31/+30
|
* Add keyword argument support to itertools.count().Raymond Hettinger2009-02-141-0/+2
|
* #3694: add test for fix committed in r66693.Georg Brandl2009-02-131-0/+4
|