summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue 5177: use socket.SO_REUSEADDR on multiprocessing SocketManager socketsJesse Noller2009-03-301-0/+24
|
* Revert incorrect change.R. David Murray2009-03-301-3/+6
|
* don't rely on the order dict repr #5605Benjamin Peterson2009-03-301-2/+2
|
* Convert import try/except to use test_support.import_module().R. David Murray2009-03-301-6/+3
|
* add missing importBenjamin Peterson2009-03-301-0/+1
|
* add missing importBenjamin Peterson2009-03-291-0/+1
|
* thanks to guido's bytecode verifier, this is fixedBenjamin Peterson2009-03-291-47/+0
|
* this has been fixed since 2.6 (I love removing these)Benjamin Peterson2009-03-291-14/+0
|
* Add the ability to control the random seed used by regrtest.py -r.Collin Winter2009-03-291-3/+15
| | | | This adds a --randseed option, and makes regrtest.py -r indicate what random seed it's using so that that value can later be fed back to --randseed. This option is useful for tracking down test order-related issues found by make buildbottest, for example.
* fix another nameBenjamin Peterson2009-03-261-1/+1
|
* ** is required hereBenjamin Peterson2009-03-261-1/+1
|
* add missing importBenjamin Peterson2009-03-261-0/+1
|
* must pass argument to get expected behavior ;)Benjamin Peterson2009-03-261-1/+1
|
* fix incorrect auto-translation of TestSkipped -> unittest.SkipTestBenjamin Peterson2009-03-2631-75/+75
|
* fix namingBenjamin Peterson2009-03-261-1/+1
|
* remove test_support.TestSkipped and just use unittest.SkipTestBenjamin Peterson2009-03-2644-108/+99
|
* apply the second part of #4242's patch; classify all the implementation ↵Benjamin Peterson2009-03-261-45/+109
| | | | details in test_descr
* rename TestCase.skip() to skipTest() because it causes annoying problems ↵Benjamin Peterson2009-03-261-2/+2
| | | | with trial #5571
* add some useful utilities for skipping tests with unittest's new skipping ↵Benjamin Peterson2009-03-261-1/+67
| | | | | | | ability most significantly apply a modified portion of the patch from #4242 with patches for skipping implementation details
* add support for PyPyBenjamin Peterson2009-03-261-0/+5
|
* roll old test in with new oneBenjamin Peterson2009-03-261-18/+17
|
* more and more implementations now support sys.subversionBenjamin Peterson2009-03-261-3/+3
|
* add much better tests for python version information parsingBenjamin Peterson2009-03-261-19/+46
|
* this can be slightly less uglyBenjamin Peterson2009-03-251-1/+1
|
* Remove the sys.version_info shortcut, since they cause the APIsMarc-André Lemburg2009-03-251-20/+29
| | | | | | | | | to return different information than the _sys_version() output used in previous Python versions. This also fixes issue5561: platform.python_version_tuple returns tuple of ints, should be strings Added more tests for the various platform functions.
* 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
|