R. David Murray [Wed, 1 Apr 2009 03:21:43 +0000 (03:21 +0000)]
Fix issue 2522. locale.format now checks that it is passed
exactly one pattern, which avoids mysterious errors where it
had seemed to fail to do localization.
R. David Murray [Tue, 31 Mar 2009 19:49:15 +0000 (19:49 +0000)]
Remove the regrtest check that turns any ImportError into a skipped test.
Hopefully all modules whose imports legitimately result in a skipped
test have been properly wrapped by the previous commits.
R. David Murray [Tue, 31 Mar 2009 18:32:17 +0000 (18:32 +0000)]
A few more test skips via import_module, and change import_module to
return the error message produced by importlib, so that if an import
in the package whose import is being wrapped is what failed the skip
message will contain the name of that module instead of the name of the
wrapped module. Also fixed formatting of some previous comments.
Gregory P. Smith [Tue, 31 Mar 2009 16:54:10 +0000 (16:54 +0000)]
The unittest.TestCase.assertEqual() now displays the differences in lists,
tuples, dicts and sets on failure.
Many new handy type and comparison specific assert* methods have been added
that fail with error messages actually useful for debugging. Contributed in
by Google and completed with help from mfoord and GvR at PyCon 2009 sprints.
Discussion lives in http://bugs.python.org/issue2578.
Jeremy Hylton [Tue, 31 Mar 2009 13:48:15 +0000 (13:48 +0000)]
Global statements from one function leaked into parallel functions.
Re http://bugs.python.org/issue4315
The symbol table used the same name dictionaries to recursively
analyze each of its child blocks, even though the dictionaries are
modified during analysis. The fix is to create new temporary
dictionaries via the analyze_child_block(). The only information that
needs to propagate back up is the names of the free variables.
Add more comments and break out a helper function. This code doesn't
get any easier to understand when you only look at it once a year.
Ronald Oussoren [Mon, 30 Mar 2009 23:10:35 +0000 (23:10 +0000)]
Fix issue #4865: add /Library/Python/2.7/site-packages to
sys.path on OSX, to make it easier to share (some) installed
packages between the system install and a user install.
R. David Murray [Mon, 30 Mar 2009 23:05:48 +0000 (23:05 +0000)]
Change more tests to use import_module for the modules that
should cause tests to be skipped. Also rename import_function
to the more descriptive get_attribute and add a docstring.
Barry Warsaw [Mon, 30 Mar 2009 22:42:17 +0000 (22:42 +0000)]
A fix for issue 1974, inspired by the patch from Andi Albrecht (aalbrecht),
though with some changes by me. This patch should not be back ported or
forward ported. It's a bit too risky for 2.6 and 3.x does things fairly
differently.
Ronald Oussoren [Mon, 30 Mar 2009 19:34:51 +0000 (19:34 +0000)]
* Set a custom icon on the Python installer DMG
* Remove last traces of "MacPython"
* Add options to build different flavors of the installer
(still defaulting to a 2-way universal build that
runs on OSX 10.3)
R. David Murray [Mon, 30 Mar 2009 19:04:00 +0000 (19:04 +0000)]
Add import_function method to test.test_support, and modify a number of
tests that expect to be skipped if imports fail or functions don't
exist to use import_function and import_module. The ultimate goal is
to change regrtest to not skip automatically on ImportError. Checking
in now to make sure the buldbots don't show any errors on platforms
I can't direct test on.
Ronald Oussoren [Mon, 30 Mar 2009 17:15:29 +0000 (17:15 +0000)]
* Updates installed dependencies to latest releaases (bzip, zlib, ...)
* Changes code for updating folder icons from Python code
that uses the deprecated Carbon module to a much simpler
Cocoa program in Objective-C