Commit Graph

45463 Commits

Author SHA1 Message Date
Brett Cannon 7a54073a56 Issue #10992: make tests pass when run under coverage.
Various tests fail when run under coverage. A primary culprit is refcount tests
which fail as the counts are thrown off by the coverage code. A new decorator
-- test.support.refcount_test -- is used to decorate tests which test refcounts
and to skip them when running under coverage. Other tests simply fail because
of changes in the system (e.g., __local__ suddenly appearing).

Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
2011-02-22 03:04:06 +00:00
Brett Cannon eb70e47d85 Ignore __pycache__ in Lib/collections. 2011-02-22 02:42:41 +00:00
Raymond Hettinger c9423109f5 Factor-out common code for helper classes. 2011-02-22 01:55:36 +00:00
Raymond Hettinger 16fe75e4e0 Have the test filename match the module filename. 2011-02-22 01:48:33 +00:00
Raymond Hettinger 158c9c26fc Issue #11085: Moved collections abstract base classes into a separate module
called collections.abc, following the pattern used by importlib.abc.  For
backwards compatibility, the names continue to also be imported into the
collections module.
2011-02-22 00:41:50 +00:00
Antoine Pitrou ecc26923cd Issue #4681: Allow mmap() to work on file sizes and offsets larger than
4GB, even on 32-bit builds.  Initial patch by Ross Lagerwall, adapted for
32-bit Windows.
2011-02-21 23:41:12 +00:00
Antoine Pitrou ce58dc7b16 Issue #10826: Prevent sporadic failure in test_subprocess on Solaris due
to open door files.
2011-02-21 21:55:48 +00:00
Victor Stinner 5ed8b2c737 Fix PyUnicode_FromFormatV("%c") for non-BMP char
Issue #10830: Fix PyUnicode_FromFormatV("%c") for non-BMP characters on
narrow build.
2011-02-21 21:13:44 +00:00
Victor Stinner ed4c71112a Remove filename variable from ceval.c
Issue #11168: Remove filename debug variable from PyEval_EvalFrameEx().
It encoded the Unicode filename to UTF-8, but the encoding fails on
undecodable filename (on surrogate characters) which raises an unexpected
UnicodeEncodeError on recursion limit.
2011-02-21 21:05:50 +00:00
Victor Stinner 441cc01e0f compileall uses repr() to format filenames/paths
Issue #11169: compileall module uses repr() to format filenames and paths to
escape surrogate characters and show spaces.
2011-02-21 20:58:02 +00:00
Victor Stinner fd34b3788f Remove bootstrap code of PyUnicode_AsEncodedString()
Issue #11187: Remove bootstrap code (use ASCII) of
PyUnicode_AsEncodedString(), it was replaced by a better fallback (use
the locale encoding) in PyUnicode_EncodeFSDefault().

Prepare also empty sections in NEWS.
2011-02-21 20:51:28 +00:00
Ned Deily 5eaee2e23b Issue #11268: Prevent Mac OS X Installer failure if Documentation
package had previously been installed.
2011-02-21 20:44:27 +00:00
Raymond Hettinger d8de5415c8 Issue 11263: Fix link to source code. 2011-02-21 19:58:37 +00:00
Raymond Hettinger ddb52404ee Issue #11089: Fix performance issue limiting the use of ConfigParser()
with large config files.
2011-02-21 19:42:11 +00:00
Brett Cannon 31f5929c1e Issue #10990: Prevent tests from clobbering a set trace function.
Many tests simply didn't care if they unset a pre-existing trace function. This
made test coverage impossible. This patch fixes various tests to put back any
pre-existing trace function. It also introduces test.support.no_tracing as a
decorator which will temporarily unset the trace function for tests which
simply fail otherwise.

Thanks to Kristian Vlaardingerbroek for helping to find the cause of various
trace function unsets.
2011-02-21 19:29:56 +00:00
Antoine Pitrou 4709ec0686 Fix compile error under MSVC introduced by r88460. 2011-02-21 19:28:40 +00:00
Brett Cannon c97c73761b Ignore Vim .swp files. 2011-02-21 19:24:10 +00:00
Antoine Pitrou 3d32664271 Fix issues on 32-bit systems introduced by r88460 2011-02-21 19:05:08 +00:00
Georg Brandl 97b67216d5 3.2 is stable now. 2011-02-21 18:37:01 +00:00
Antoine Pitrou 54f0f84e9f Issue #10276: Fix the results of zlib.crc32() and zlib.adler32() on buffers
larger than 4GB.  Patch by Nadeem Vawda.
2011-02-21 18:03:13 +00:00
Raymond Hettinger 2cef949c9d Issue 10160: Both single-arg and multi-arg calls have been sped-up. 2011-02-21 17:54:36 +00:00
Martin v. Löwis 5e06a5d4cd - Check for NULL result in PyType_FromSpec. 2011-02-21 16:24:00 +00:00
Georg Brandl 2cebdd4865 Remove unittest methods scheduled for removal in 3.3 -- makes the unittest test suite pass again. 2011-02-20 11:18:09 +00:00
Georg Brandl fa2c61a222 More automated version replacement. 2011-02-20 10:41:31 +00:00
Georg Brandl 3ebb6b3615 Bump trunk to 3.3 alpha 0. 2011-02-20 10:37:07 +00:00
Georg Brandl 4a9d447ac6 Bump to 3.3a0. 2011-02-20 10:33:21 +00:00
Georg Brandl 260a788767 Version bump to 3.2 final. 2011-02-20 10:29:04 +00:00
Georg Brandl 14927d0928 Topic and suspicious update. 2011-02-20 10:22:41 +00:00
Georg Brandl 032400b2d8 #11249: in PyType_FromSpec, copy tp_doc slot since it usually will point to a static string literal which should not be deallocated together with the type. 2011-02-19 21:47:02 +00:00
Éric Araujo e0e824d2ed Fix two typos in what’s new (#11234). 2011-02-19 18:46:02 +00:00
Éric Araujo 85dacf7267 Some more grammar fixes/typos for what’s new (approved by Raymond; #11071) 2011-02-19 18:06:50 +00:00
Georg Brandl 216e404bca #11184: Fix large file support on AIX. 2011-02-19 08:58:23 +00:00
Georg Brandl 6e8d17c062 #11222: fix non-framework shared library build on Mac, patch by Ned Deily. 2011-02-19 08:47:14 +00:00
Georg Brandl 6c9ba24d64 #10709: add back an updated AIX-NOTES (as README.AIX). 2011-02-19 08:44:47 +00:00
Brett Cannon 6277fa4f7d Update the porting HOWTO to be a little less harsh on using 2to3.
Patch reviewed by Raymond Hettinger, permission from Georg Brandl to commit
during an RC.
2011-02-18 01:34:28 +00:00
Raymond Hettinger 8f0ae9a17f Doc fixups. 2011-02-18 00:53:55 +00:00
Raymond Hettinger 03a6e6630b Fix-up logging.dictConfig() example. 2011-02-17 19:19:44 +00:00
Raymond Hettinger 4a8f50a85c Fix an import and add a citation. 2011-02-17 19:05:53 +00:00
Georg Brandl 59e87bd251 #730467: Another small AIX fix. 2011-02-15 19:48:59 +00:00
Georg Brandl 9a829bed97 #941346: Fix broken shared library build on AIX. Patch by Sebastien Sable, review by Antoine Pitrou. 2011-02-15 15:44:51 +00:00
Georg Brandl 08e278a562 Remove editing slip. 2011-02-15 12:44:43 +00:00
Georg Brandl dbb958561d Apply logging SocketHandler doc update by Vinay. 2011-02-15 12:41:17 +00:00
Raymond Hettinger 44efc6522a Fix accumulate() example. (Reported by David Murray.) 2011-02-14 18:18:49 +00:00
Georg Brandl d585218a75 Post-release updates. 2011-02-14 06:35:00 +00:00
Georg Brandl 40bcffa985 Tag 3.2rc3. 2011-02-13 10:03:21 +00:00
Georg Brandl a6d12ef048 Bump for 3.2rc3. 2011-02-13 10:00:57 +00:00
Georg Brandl 829befb9e3 Fix markup error and update suspicious ignores. 2011-02-13 09:59:39 +00:00
Georg Brandl 3a780aaab4 Update pydoc topics. 2011-02-13 09:54:12 +00:00
R. David Murray 774a66deda Fix #11116 fix on Windows (close file before removing in MH code) 2011-02-12 00:03:31 +00:00
R. David Murray fc14114ca9 #11116: roll back on error during add so mailbox isn't left corrupted. 2011-02-11 22:47:17 +00:00