Commit Graph

41617 Commits

Author SHA1 Message Date
Benjamin Peterson 0e9285845e give os.symlink and os.link() better parameter names #5564 2009-03-28 19:16:10 +00:00
Georg Brandl a31aa45fbf #5324: document __subclasses__(). 2009-03-28 19:10:37 +00:00
Antoine Pitrou c18f6b023d Publicize the GC untracking optimization 2009-03-28 19:10:13 +00:00
Georg Brandl 5adab304e3 Fix typo. 2009-03-28 00:48:48 +00:00
Guilherme Polo 1972d16230 Adjusted _tkinter to compile without warnings when WITH_THREAD is not
defined (part of issue #5035)
2009-03-27 21:43:08 +00:00
Benjamin Peterson 7fa9459baf fix another name 2009-03-26 21:44:43 +00:00
Benjamin Peterson 04232973b7 update email tests to use SkipTest 2009-03-26 21:40:29 +00:00
Benjamin Peterson effa1dc709 ** is required here 2009-03-26 21:30:54 +00:00
Benjamin Peterson bf4464a38f add missing import 2009-03-26 21:30:10 +00:00
Benjamin Peterson a9b5be0c05 must pass argument to get expected behavior ;) 2009-03-26 21:11:16 +00:00
Benjamin Peterson bec087f29d fix incorrect auto-translation of TestSkipped -> unittest.SkipTest 2009-03-26 21:10:30 +00:00
Benjamin Peterson ad57d97596 fix naming 2009-03-26 20:49:40 +00:00
Benjamin Peterson 888a39b54c remove test_support.TestSkipped and just use unittest.SkipTest 2009-03-26 20:48:25 +00:00
Benjamin Peterson 21f6aac633 apply the second part of #4242's patch; classify all the implementation details in test_descr 2009-03-26 20:17:27 +00:00
Benjamin Peterson 47d9738b0f rename TestCase.skip() to skipTest() because it causes annoying problems with trial #5571 2009-03-26 20:05:50 +00:00
Benjamin Peterson c3141a6e96 add some useful utilities for skipping tests with unittest's new skipping ability
most significantly apply a modified portion of the patch from #4242 with
patches for skipping implementation details
2009-03-26 19:58:18 +00:00
Benjamin Peterson 0ad9b7727d add support for PyPy 2009-03-26 19:09:21 +00:00
Benjamin Peterson 94e4e2a7e5 roll old test in with new one 2009-03-26 18:58:30 +00:00
Benjamin Peterson b457b89323 more and more implementations now support sys.subversion 2009-03-26 18:55:48 +00:00
Benjamin Peterson f521b8c6d2 add much better tests for python version information parsing 2009-03-26 18:35:37 +00:00
Benjamin Peterson c9301355d8 remove uneeded function 2009-03-26 16:32:23 +00:00
Raymond Hettinger 2dc90fdfaf Separate initialization from clearing. 2009-03-25 22:41:32 +00:00
Benjamin Peterson 2f6f7436aa this can be slightly less ugly 2009-03-25 21:42:51 +00:00
Benjamin Peterson a8adceb431 add shorthands for expected failures and unexpected success 2009-03-25 21:24:04 +00:00
Marc-André Lemburg cbdf15b0e7 News item for the platform.py fix (r70594). 2009-03-25 19:45:33 +00:00
Marc-André Lemburg a519cfc953 Remove the sys.version_info shortcut, since they cause the APIs
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.
2009-03-25 19:44:58 +00:00
Skip Montanaro 9a1337b95e clarify the type of data returned 2009-03-25 00:52:11 +00:00
Benjamin Peterson d0cdb2ddf2 another style nit 2009-03-24 23:07:07 +00:00
Benjamin Peterson a473f00cac fix newline issue in test summary 2009-03-24 22:56:32 +00:00
Benjamin Peterson 2bf74fd0ac this is better written using assertRaises 2009-03-24 03:24:56 +00:00
Benjamin Peterson 037154865e fix typo 2009-03-24 01:11:37 +00:00
Benjamin Peterson c750d4d761 add new skipping things to __all__ 2009-03-24 00:39:24 +00:00
Benjamin Peterson 4e4de33ca9 update docstring 2009-03-24 00:37:12 +00:00
Benjamin Peterson 3e0aa49d3f remove special metadata 2009-03-24 00:36:16 +00:00
Benjamin Peterson a7d441de68 some cleanup and modernization 2009-03-24 00:35:20 +00:00
Raymond Hettinger 21b617bd98 Add links to related resources. 2009-03-24 00:17:11 +00:00
Benjamin Peterson bca248e9a5 update from CVS 2009-03-23 23:19:03 +00:00
Benjamin Peterson 31b7806ee8 forgot to document that setUp can be skipped (silly me...) 2009-03-23 23:13:36 +00:00
Benjamin Peterson 99721e0c44 refactor unittest docs 2009-03-23 23:10:14 +00:00
Benjamin Peterson cb2b0e45d4 comply with the evilJavaNamingScheme for attribute names
It seems my love of PEP 8 overrode the need for consistentcy
2009-03-23 22:29:45 +00:00
Benjamin Peterson 692428e77f implement test skipping and expected failures
patch by myself #1034053
2009-03-23 21:50:21 +00:00
Benjamin Peterson 797eaf305a complain when there's no last exception 2009-03-23 21:25:15 +00:00
Benjamin Peterson 3e6c335ae0 revert r70552; wrong fix 2009-03-23 21:23:30 +00:00
Benjamin Peterson 85e1478ca4 fix very old names for exception terms #5543 2009-03-23 20:47:59 +00:00
Antoine Pitrou 1fba62427c The tracking statistics were actually too pessimistic 2009-03-23 19:17:00 +00:00
Antoine Pitrou f8387af262 Issue #4688: Add a heuristic so that tuples and dicts containing only
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)
2009-03-23 18:41:45 +00:00
Raymond Hettinger e5b78563b6 Make imported name private and wrap long-line. 2009-03-23 18:26:59 +00:00
Mark Dickinson 0b666bfdf9 Issue #5512: speed up the long division algorithm for Python longs.
The basic algorithm remains the same; the most significant speedups
come from the following three changes:

  (1) normalize by shifting instead of multiplying and dividing
  (2) the old algorithm usually did an unnecessary extra iteration of
      the outer loop; remove this.  As a special case, this means that
      long divisions with a single-digit result run twice as fast as
      before.
  (3) make inner loop much tighter.

Various benchmarks show speedups of between 50% and 150% for long
integer divisions and modulo operations.
2009-03-23 18:25:13 +00:00
Raymond Hettinger 906f95e80b Move initialization of root link to __init__. 2009-03-23 04:42:18 +00:00
Raymond Hettinger f1e2df9780 Add more comments. Improve variable names.
Make links clearer by using a Link object
instead of a list.  Use proxy links to avoid
circular references.
2009-03-23 00:08:09 +00:00