Commit Graph

15106 Commits

Author SHA1 Message Date
Ronald Oussoren
ca8e7ec216 Unittests and news items for the patch in r77026. 2009-12-24 14:50:35 +00:00
Ronald Oussoren
92919a66d2 Issue #6834: replace the implementation for the 'python' and 'pythonw' executables on OSX.
The previous implementation used execv(2) to run the real interpreter, which means that
you cannot use the arch(1) tool to select the architecture you want to use for a
universal build because that only affects the python/pythonw wrapper and not the actual
interpreter.

The new version uses posix_spawnv with a number of OSX-specific options that ensure that
the real interpreter is started using the same CPU architecture as the wrapper, and that
means that 'arch -ppc python' now actually works.

I've also changed the way that the wrapper looks for the framework: it is now linked to
the framework rather than hardcoding the framework path. This should make it easier to
provide pythonw support in tools like virtualenv.
2009-12-24 13:30:58 +00:00
Ronald Oussoren
728cc6110f On OSX the output of "uname -m" always reflects the 32-bit architecture
for the machine ("i386" or "ppc"), even if the executable is
64-bit.

This patchs ensures that the distutils platform architecture
represents the architecture for the executable when running a
64-bit only executable on OSX.
2009-12-24 13:06:39 +00:00
Benjamin Peterson
3293593b54 fix alleged refleak 2009-12-24 01:09:53 +00:00
Gregory P. Smith
9f12d468f4 Fix possible integer overflow in lchown and fchown functions. For issue1747858. 2009-12-23 09:31:11 +00:00
Tarek Ziadé
3efd767336 backported r76993 and r76994 so the trunk behaves the same way with MSVC Manifest files editing 2009-12-21 23:31:55 +00:00
Mark Dickinson
2ba1e9ceb8 Issue #7553: test_long_future wasn't testing properly. Thanks Florent Xicluna
for bug report and patch.
2009-12-21 16:29:21 +00:00
R. David Murray
08dca0d6da Remove a leftover from a previous iteration of the issue 7376 patch. 2009-12-21 12:45:41 +00:00
Tarek Ziadé
2b66da7d15 massive import cleaning in Distutils 2009-12-21 01:22:46 +00:00
Tarek Ziadé
2421d56e02 Fixed #7552: fixed distutils.command.upload failure on very long passwords 2009-12-20 23:23:34 +00:00
Mark Dickinson
603ae9e371 Issue #7554: Various fixups in test_cmath.py: remove code duplication,
use new-style formatting.  Thanks Florent Xicluna for the patch.
2009-12-20 20:34:44 +00:00
Mark Dickinson
ed284991e1 Silence -3 warnings. Thanks Florent Xicluna. 2009-12-20 20:23:01 +00:00
Mark Dickinson
3e0bafef25 Fix for consistency with py3k keyword-only version of assertAlmostEqual 2009-12-20 19:52:36 +00:00
Mark Dickinson
1d2ae215aa Issue #7554: Fix incorrect usage of rAssertAlmostEqual. Thanks Florent Xicluna. 2009-12-20 19:45:37 +00:00
R. David Murray
77e48ba993 Issue #7376: When called with no arguments doctest was running a
self-test.  Because of a change to the way tracebacks are printed,
this self-test was failing.  The test is run (and passes) during normal
regression testing.  So instead of running the failing self-test this
patch makes doctest emit a usage message.  This is better behavior anyway
since passing in arguments is the real reason to run doctest as a command.

Bug discovery and initial patch by Florent Xicluna.
2009-12-20 16:46:06 +00:00
R. David Murray
97138117b2 Fix comment typo. 2009-12-20 16:24:46 +00:00
Mark Dickinson
b5e348b305 Add missing tests for PyArg_Parse* with format 'h' 2009-12-20 15:57:56 +00:00
Georg Brandl
6ab5d083f2 #7381: subprocess documentation and library docstring consistency fixes. 2009-12-20 14:33:20 +00:00
Senthil Kumaran
7713acf201 Fix for issue 7291 - urllib2 cannot handle https with proxy requiring auth
Refactored HTTPHandler tests and added testcase for proxy authorization.
2009-12-20 06:05:13 +00:00
Antoine Pitrou
98a24def03 Remove superfetatory paragraph (left there by mistake). 2009-12-19 21:06:36 +00:00
Antoine Pitrou
e812d29b52 Issue #7545: improve documentation of the buffering argument in io.open(). 2009-12-19 21:01:10 +00:00
Mark Dickinson
5ff37ae14b Issue #3366: Add error function and complementary error function to
math module.
2009-12-19 11:07:23 +00:00
Mark Dickinson
9cae178f21 Issue #3366: Add expm1 function to math module. Thanks Eric Smith for
testing on Windows.
2009-12-16 20:13:40 +00:00
R. David Murray
98e3df38fd Issue #7396: fix -s, which was broken by the -j enhancement. 2009-12-16 11:49:46 +00:00
Benjamin Peterson
36902988a6 remove lib2to3 resource 2009-12-16 03:28:52 +00:00