]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Éric Araujo [Thu, 25 Aug 2011 23:23:20 +0000 (01:23 +0200)]
Synchronize packaging docs with distutils’ (includes fix for #9302)
Éric Araujo [Thu, 25 Aug 2011 23:17:56 +0000 (01:17 +0200)]
Merge from 3.2 (#9302 fix and other changes)
Éric Araujo [Thu, 25 Aug 2011 22:45:18 +0000 (00:45 +0200)]
Document the "optional" argument of distutils’ Extension class
Éric Araujo [Thu, 25 Aug 2011 22:44:37 +0000 (00:44 +0200)]
Fix type information in distutils API reference (#9302).
Initial patch by Yue Shuaijie.
Éric Araujo [Thu, 25 Aug 2011 22:10:12 +0000 (00:10 +0200)]
Make the list of docs contributors sorted again
Éric Araujo [Thu, 25 Aug 2011 22:05:11 +0000 (00:05 +0200)]
Minor code simplification
Éric Araujo [Thu, 25 Aug 2011 22:03:22 +0000 (00:03 +0200)]
Turn two ifs into one in the code I commited a few days ago
Éric Araujo [Thu, 25 Aug 2011 16:13:58 +0000 (18:13 +0200)]
Another (hopefully last) fix for test_packaging on Windws (#12678)
Antoine Pitrou [Thu, 25 Aug 2011 13:01:15 +0000 (15:01 +0200)]
Followup to
cdc6c1b072a5 : I forgot to "hg add" the test files
Antoine Pitrou [Thu, 25 Aug 2011 12:39:44 +0000 (14:39 +0200)]
Issue #12803: SSLContext.load_cert_chain() now accepts a password argument
to be used if the private key is encrypted. Patch by Adam Simpkins.
Georg Brandl [Thu, 25 Aug 2011 09:52:39 +0000 (11:52 +0200)]
Merge 3.2.
Georg Brandl [Thu, 25 Aug 2011 09:52:26 +0000 (11:52 +0200)]
Close #12838: fix range() call.
Charles-François Natali [Wed, 24 Aug 2011 23:22:50 +0000 (01:22 +0200)]
Issue #12656: Really fix test_asyncore failures on Windows buildbots...
Charles-François Natali [Wed, 24 Aug 2011 22:50:41 +0000 (00:50 +0200)]
Issue #12656: Fix test_asyncore failures on Windows buildbots.
Charles-François Natali [Wed, 24 Aug 2011 21:24:05 +0000 (23:24 +0200)]
Issue #12656: Add tests for IPv6 and Unix sockets to test_asyncore.
Charles-François Natali [Wed, 24 Aug 2011 19:40:53 +0000 (21:40 +0200)]
sock_sendmsg/sock_recvmsg: Use {0} to 0-initialize aggregate types with
automatic storage class.
Charles-François Natali [Wed, 24 Aug 2011 18:07:54 +0000 (20:07 +0200)]
Issue12810: Remove check for negative unsigned value in socketmodule.c. Patch
by Joel Stanley.
Éric Araujo [Wed, 24 Aug 2011 00:15:25 +0000 (02:15 +0200)]
Fix test_packaging on Windows (#12678).
See the distutils commit message for more detail.
Éric Araujo [Tue, 23 Aug 2011 23:58:59 +0000 (01:58 +0200)]
Merge distutils bug fix from 3.2
Éric Araujo [Tue, 23 Aug 2011 23:29:10 +0000 (01:29 +0200)]
Fix distutils tests on Windows (#12678).
- First, support.fixup_build_ext (already used to set proper
library_dirs value under Unix shared builds) gains the ability to
correctly set the debug attribute under Windows debug builds.
- Second, the filename for the extension module gets a _d suffix under
debug builds.
- Third, the test code properly puts our customized build_ext object
into an internal dictionary to make sure that the install command will
later use our object instead of re-creating one. That’s the downside
of using low-level APIs in our test code: we have to manually push
knobs and turn handles that would otherwise be handled behind the
scenes.
Thanks to Nadeem for the testing.
Éric Araujo [Tue, 23 Aug 2011 19:41:03 +0000 (21:41 +0200)]
Branch merge
Éric Araujo [Tue, 23 Aug 2011 19:38:13 +0000 (21:38 +0200)]
Try to fix packaging tests using build_ext on Windows (#12678)
Antoine Pitrou [Tue, 23 Aug 2011 17:49:43 +0000 (19:49 +0200)]
Merge
Charles-François Natali [Tue, 23 Aug 2011 17:49:25 +0000 (19:49 +0200)]
Null merge.
Antoine Pitrou [Tue, 23 Aug 2011 17:49:13 +0000 (19:49 +0200)]
Merge
Antoine Pitrou [Tue, 23 Aug 2011 17:48:34 +0000 (19:48 +0200)]
Issue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe.
Also added some tests.
Charles-François Natali [Tue, 23 Aug 2011 17:46:46 +0000 (19:46 +0200)]
Issue #12821: Fix test_fcntl failures on OpenBSD 5.
Antoine Pitrou [Tue, 23 Aug 2011 17:46:22 +0000 (19:46 +0200)]
Issue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe.
Also added some tests.
Antoine Pitrou [Tue, 23 Aug 2011 17:32:26 +0000 (19:32 +0200)]
A warning doesn't equate a failed test
(this broken -F with e.g. test_multiprocessing)
Nick Coghlan [Tue, 23 Aug 2011 12:26:44 +0000 (22:26 +1000)]
Remove the SSLSocket versions of sendmsg/recvmsg due to lack of proper tests and documentation in conjunction with lack of any known use cases (see issue #6560 for details)
Victor Stinner [Tue, 23 Aug 2011 08:57:32 +0000 (10:57 +0200)]
Close #12826: fix socketmodule.c for OpenBSD, include sys/uio.h
Patch written by Remi Pointel.
Sandro Tosi [Mon, 22 Aug 2011 22:58:21 +0000 (00:58 +0200)]
#12191: added entry in What's New (+ small editing on shutil section)
Ezio Melotti [Mon, 22 Aug 2011 22:39:22 +0000 (01:39 +0300)]
#6484: refactor a bit the tests.
Sandro Tosi [Mon, 22 Aug 2011 21:55:39 +0000 (23:55 +0200)]
#12191: fix build failures, explicitly passing group argument when I want to test it
Ezio Melotti [Mon, 22 Aug 2011 21:40:09 +0000 (00:40 +0300)]
Merge indentation fix and skip decorator with 3.2.
Ezio Melotti [Mon, 22 Aug 2011 21:37:08 +0000 (00:37 +0300)]
Fix indentation and add a skip decorator.
Sandro Tosi [Mon, 22 Aug 2011 21:28:27 +0000 (23:28 +0200)]
#12191: add shutil.chown() to change user and/or group owner of a given path also specifying their names.
Ezio Melotti [Mon, 22 Aug 2011 17:31:11 +0000 (20:31 +0300)]
#9200: merge with 3.2.
Ezio Melotti [Mon, 22 Aug 2011 17:03:25 +0000 (20:03 +0300)]
#10542: Add 4 macros to work with surrogates: Py_UNICODE_IS_SURROGATE, Py_UNICODE_IS_HIGH_SURROGATE, Py_UNICODE_IS_LOW_SURROGATE, Py_UNICODE_JOIN_SURROGATES.
Ezio Melotti [Mon, 22 Aug 2011 11:08:38 +0000 (14:08 +0300)]
#9200: The str.is* methods now work with strings that contain non-BMP characters even in narrow Unicode builds.
Nadeem Vawda [Mon, 22 Aug 2011 07:46:56 +0000 (09:46 +0200)]
Fix deprecation warnings in test_socket.
Nick Coghlan [Mon, 22 Aug 2011 06:27:46 +0000 (16:27 +1000)]
Credit patch authors in NEWS for #6560
Nick Coghlan [Mon, 22 Aug 2011 06:19:19 +0000 (16:19 +1000)]
Fix #12811 by closing files promptly in tabnanny.check. Patch by Anthony Briggs.
Nick Coghlan [Mon, 22 Aug 2011 06:05:44 +0000 (16:05 +1000)]
Add unit tests for the mailcap module. Patch by Gregory Nofi (closes #6484)
Nick Coghlan [Mon, 22 Aug 2011 05:45:19 +0000 (15:45 +1000)]
Attempt to address Windows buildbot failures
Nick Coghlan [Mon, 22 Aug 2011 01:55:57 +0000 (11:55 +1000)]
Add support for the send/recvmsg API to the socket module. Patch by David Watson and Heiko Wundram. (Closes #6560)
Nadeem Vawda [Sun, 21 Aug 2011 20:36:27 +0000 (22:36 +0200)]
Null merge; fix already present in default branch.
Nadeem Vawda [Sun, 21 Aug 2011 20:35:41 +0000 (22:35 +0200)]
Issue #12678: Fix distutils sdist test on Windows.
Patch by Jeremy Kloth.
Éric Araujo [Sun, 21 Aug 2011 15:38:56 +0000 (17:38 +0200)]
Fix test_command_install_dist in shared Python builds
Éric Araujo [Sun, 21 Aug 2011 15:38:36 +0000 (17:38 +0200)]
Factor out the build_ext fixup for shared Python builds.
I need this to fix the failing test_command_install_dist.
Éric Araujo [Sun, 21 Aug 2011 15:37:36 +0000 (17:37 +0200)]
Remove obsolete code
Éric Araujo [Sun, 21 Aug 2011 15:10:50 +0000 (17:10 +0200)]
Merge build_ext fix from 3.2
Éric Araujo [Sun, 21 Aug 2011 15:03:19 +0000 (17:03 +0200)]
Fix distutils test_install for shared CPython builds
Éric Araujo [Sun, 21 Aug 2011 15:02:07 +0000 (17:02 +0200)]
Factor out the build_ext fixup for shared Python builds.
I need this to fix the failing test_install.
Nadeem Vawda [Sun, 21 Aug 2011 14:48:54 +0000 (16:48 +0200)]
Update README section on testing following issue #11651.
Nadeem Vawda [Sun, 21 Aug 2011 14:41:03 +0000 (16:41 +0200)]
Issue #12804: Prevent "make test" from using network resources.
Éric Araujo [Sun, 21 Aug 2011 12:30:00 +0000 (14:30 +0200)]
Merge 3.2
Éric Araujo [Sun, 21 Aug 2011 12:29:18 +0000 (14:29 +0200)]
Add missing name in shutil
Éric Araujo [Sun, 21 Aug 2011 10:54:06 +0000 (12:54 +0200)]
Merge 3.2
Éric Araujo [Sun, 21 Aug 2011 10:53:37 +0000 (12:53 +0200)]
Add missing closing paren in docstring (thanks Ezio)
Charles-François Natali [Sun, 21 Aug 2011 10:41:43 +0000 (12:41 +0200)]
Issue #12783: Fix test_posix failures on FreeBSD buildbots, due to
sched_setparam() returning EINVAL for processes with SCHED_OTHER scheduling
policy.
Victor Stinner [Sun, 21 Aug 2011 10:08:11 +0000 (12:08 +0200)]
Issue #12326: update sys.platform doc for Linux
Victor Stinner [Sat, 20 Aug 2011 22:39:18 +0000 (00:39 +0200)]
Issue #12326: refactor usage of sys.platform
* Use str.startswith(tuple): I didn't know this Python feature, Python rocks!
* Replace sometimes sys.platform.startswith('linux') with
sys.platform == 'linux'
* sys.platform doesn't contain the major version on Cygwin on Mac OS X
(it's just 'cygwin' and 'darwin')
Sandro Tosi [Sat, 20 Aug 2011 22:16:49 +0000 (00:16 +0200)]
#5301: merge with 3.2
Sandro Tosi [Sat, 20 Aug 2011 22:16:18 +0000 (00:16 +0200)]
#5301: add image/vnd.microsoft.icon (.ico) MIME type
Victor Stinner [Sat, 20 Aug 2011 22:00:16 +0000 (00:00 +0200)]
Issue #12326: woops, I really mean 'linux', not 'linux2'
Copy/paste (from Python 3.2) failure
Victor Stinner [Sat, 20 Aug 2011 21:39:26 +0000 (23:39 +0200)]
Close #12326: sys.platform is now always 'linux' on Linux
On Linux, sys.platform doesn't contain the major version anymore. It is now
always 'linux', instead of 'linux2' or 'linux3' depending on the Linux version
used to build Python.
Éric Araujo [Sat, 20 Aug 2011 18:02:04 +0000 (20:02 +0200)]
Merge 3.2
Éric Araujo [Sat, 20 Aug 2011 18:00:07 +0000 (20:00 +0200)]
Branch merge
Éric Araujo [Sat, 20 Aug 2011 17:57:42 +0000 (19:57 +0200)]
Branch merge
Éric Araujo [Sat, 20 Aug 2011 17:55:58 +0000 (19:55 +0200)]
Branch merge
Éric Araujo [Sat, 20 Aug 2011 17:52:07 +0000 (19:52 +0200)]
Fix sdist test on Windows (#12678). Patch by Jeremy Kloth.
Antoine Pitrou [Sat, 20 Aug 2011 17:50:32 +0000 (19:50 +0200)]
Issue #12213: make it clear that BufferedRWPair shouldn't be called with the
same object as reader and writer, and deemphasize it in document order.
Antoine Pitrou [Sat, 20 Aug 2011 17:48:43 +0000 (19:48 +0200)]
Issue #12213: make it clear that BufferedRWPair shouldn't be called with the
same object as reader and writer, and deemphasize it in document order.
Sandro Tosi [Sat, 20 Aug 2011 15:06:38 +0000 (17:06 +0200)]
#12787: merge with 3.2
Sandro Tosi [Sat, 20 Aug 2011 15:05:56 +0000 (17:05 +0200)]
#12787: link original MultiCall proposal to webarchive and in a footnote
Antoine Pitrou [Sat, 20 Aug 2011 12:52:04 +0000 (14:52 +0200)]
Issue #12213: Fix a buffering bug with interleaved reads and writes that
could appear on BufferedRandom streams.
Antoine Pitrou [Sat, 20 Aug 2011 12:39:23 +0000 (14:39 +0200)]
Issue #12213: Fix a buffering bug with interleaved reads and writes that
could appear on BufferedRandom streams.
Antoine Pitrou [Sat, 20 Aug 2011 12:18:25 +0000 (14:18 +0200)]
Issue #12791: Break reference cycles early when a generator exits with an exception.
Antoine Pitrou [Sat, 20 Aug 2011 12:15:03 +0000 (14:15 +0200)]
Issue #12791: Break reference cycles early when a generator exits with an exception.
Victor Stinner [Sat, 20 Aug 2011 12:01:05 +0000 (14:01 +0200)]
Issue #12326: sys.platform is now always 'linux2' on Linux
Even if Python is compiled on Linux 3.
Éric Araujo [Sat, 20 Aug 2011 07:31:25 +0000 (09:31 +0200)]
Add a simple test for the packaging RECORD file.
The existing test_record is not easily extendable to add script files or
extension modules: it collects all files from fake_dists and generates a
RECORD file at runtime. I felt more comfortable adding a new test
written from scratch more self-contained (just one project with
well-defined files) and more stupid (the checksums and sizes are
computed once and hard-coded).
Éric Araujo [Sat, 20 Aug 2011 07:19:25 +0000 (09:19 +0200)]
Minor cleanup
- Rename an attribute and create it in initialize_options instead of
finalize_options to match the other install_* classes
- Remove unnecessary method call in tests
Éric Araujo [Sat, 20 Aug 2011 05:42:56 +0000 (07:42 +0200)]
Add a test for extension modules in the old-style record file
Éric Araujo [Sat, 20 Aug 2011 05:34:43 +0000 (07:34 +0200)]
Rework test_old_record a bit to make the test more exact
(i.e. to check the files found are what we expect)
Éric Araujo [Sat, 20 Aug 2011 05:27:47 +0000 (07:27 +0200)]
Refactor the copying of xxmodule.c in packaging tests (#12141).
I need to copy this file in another test too, so I moved the support
code to distutils.tests.support and improved it to use proper skip
machinery instead of custom print/return/test suite fiddling.
Contrary to my similar change in distutils tests, I did not add support
for finding xxmodule.c when running a test from the tests directory,
because in that case my compiler didn’t find Python.h, so I figured it’s
better to skip than to fail.
Éric Araujo [Sat, 20 Aug 2011 05:25:39 +0000 (07:25 +0200)]
Dedent example in docstring
Éric Araujo [Sat, 20 Aug 2011 05:10:54 +0000 (07:10 +0200)]
Merge 3.2
Éric Araujo [Sat, 20 Aug 2011 05:08:51 +0000 (07:08 +0200)]
Add a test for extension modules in the distutils record file.
I made a note a month ago that install --record wrote incorrect entries
for extension modules (I think the problem was that the first character
of the file was stripped), so I’m now adding a test to try to reproduce
that in the current versions.
Éric Araujo [Sat, 20 Aug 2011 05:00:41 +0000 (07:00 +0200)]
Rework test_record a bit to make the test more exact
Éric Araujo [Sat, 20 Aug 2011 04:27:18 +0000 (06:27 +0200)]
Refactor the copying of xxmodule.c in distutils tests (#12141).
I need to copy this file in another test too, so I moved the support
code to distutils.tests.support and improved it:
- don’t skip when run from the Lib/distutils/tests directory
- use proper skip machinery instead of custom print/return/test suite
fiddling.
Antoine Pitrou [Sat, 20 Aug 2011 01:19:34 +0000 (03:19 +0200)]
Fix compilation under Windows
Sandro Tosi [Fri, 19 Aug 2011 20:55:24 +0000 (22:55 +0200)]
merge with 3.2
Sandro Tosi [Fri, 19 Aug 2011 20:54:50 +0000 (22:54 +0200)]
fix description of \r; thanks to Thomas Waldmann from docs@
Antoine Pitrou [Fri, 19 Aug 2011 18:33:11 +0000 (20:33 +0200)]
Fix typo in test names
Antoine Pitrou [Fri, 19 Aug 2011 18:32:34 +0000 (20:32 +0200)]
Fix typo in test names
Sandro Tosi [Fri, 19 Aug 2011 16:40:56 +0000 (18:40 +0200)]
merge with 3.2
Sandro Tosi [Fri, 19 Aug 2011 16:40:21 +0000 (18:40 +0200)]
mention RFC1123 as origin of 4-year digit; thanks to John Haxby from docs@
Antoine Pitrou [Fri, 19 Aug 2011 16:03:14 +0000 (18:03 +0200)]
Issue #12778: Reduce memory consumption when JSON-encoding a large container of many small objects.
Éric Araujo [Fri, 19 Aug 2011 15:47:52 +0000 (17:47 +0200)]
Restore $HOME after test has run (should fix #12765)