]> granicus.if.org Git - python/log
python
13 years agoIssue12810: Remove check for negative unsigned value in socketmodule.c. Patch
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.

13 years agoFix test_packaging on Windows (#12678).
É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.

13 years agoMerge distutils bug fix from 3.2
Éric Araujo [Tue, 23 Aug 2011 23:58:59 +0000 (01:58 +0200)]
Merge distutils bug fix from 3.2

13 years agoFix distutils tests on Windows (#12678).
É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.

13 years agoBranch merge
Éric Araujo [Tue, 23 Aug 2011 19:41:03 +0000 (21:41 +0200)]
Branch merge

13 years agoTry to fix packaging tests using build_ext on Windows (#12678)
Éric Araujo [Tue, 23 Aug 2011 19:38:13 +0000 (21:38 +0200)]
Try to fix packaging tests using build_ext on Windows (#12678)

13 years agoMerge
Antoine Pitrou [Tue, 23 Aug 2011 17:49:43 +0000 (19:49 +0200)]
Merge

13 years agoNull merge.
Charles-François Natali [Tue, 23 Aug 2011 17:49:25 +0000 (19:49 +0200)]
Null merge.

13 years agoMerge
Antoine Pitrou [Tue, 23 Aug 2011 17:49:13 +0000 (19:49 +0200)]
Merge

13 years agoIssue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe.
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.

13 years agoIssue #12821: Fix test_fcntl failures on OpenBSD 5.
Charles-François Natali [Tue, 23 Aug 2011 17:46:46 +0000 (19:46 +0200)]
Issue #12821: Fix test_fcntl failures on OpenBSD 5.

13 years agoIssue #11657: Fix sending file descriptors over 255 over a multiprocessing Pipe.
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.

13 years agoA warning doesn't equate a failed test
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)

13 years agoRemove the SSLSocket versions of sendmsg/recvmsg due to lack of proper tests and...
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)

13 years agoClose #12826: fix socketmodule.c for OpenBSD, include sys/uio.h
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.

13 years ago#12191: added entry in What's New (+ small editing on shutil section)
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)

13 years ago#6484: refactor a bit the tests.
Ezio Melotti [Mon, 22 Aug 2011 22:39:22 +0000 (01:39 +0300)]
#6484: refactor a bit the tests.

13 years ago#12191: fix build failures, explicitly passing group argument when I want to test it
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

13 years agoMerge indentation fix and skip decorator with 3.2.
Ezio Melotti [Mon, 22 Aug 2011 21:40:09 +0000 (00:40 +0300)]
Merge indentation fix and skip decorator with 3.2.

13 years agoFix indentation and add a skip decorator.
Ezio Melotti [Mon, 22 Aug 2011 21:37:08 +0000 (00:37 +0300)]
Fix indentation and add a skip decorator.

13 years ago#12191: add shutil.chown() to change user and/or group owner of a given path also...
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.

13 years ago#9200: merge with 3.2.
Ezio Melotti [Mon, 22 Aug 2011 17:31:11 +0000 (20:31 +0300)]
#9200: merge with 3.2.

13 years ago#10542: Add 4 macros to work with surrogates: Py_UNICODE_IS_SURROGATE, Py_UNICODE_IS_...
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.

13 years ago#9200: The str.is* methods now work with strings that contain non-BMP characters...
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.

13 years agoFix deprecation warnings in test_socket.
Nadeem Vawda [Mon, 22 Aug 2011 07:46:56 +0000 (09:46 +0200)]
Fix deprecation warnings in test_socket.

13 years agoCredit patch authors in NEWS for #6560
Nick Coghlan [Mon, 22 Aug 2011 06:27:46 +0000 (16:27 +1000)]
Credit patch authors in NEWS for #6560

13 years agoFix #12811 by closing files promptly in tabnanny.check. Patch by Anthony Briggs.
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.

13 years agoAdd unit tests for the mailcap module. Patch by Gregory Nofi (closes #6484)
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)

13 years agoAttempt to address Windows buildbot failures
Nick Coghlan [Mon, 22 Aug 2011 05:45:19 +0000 (15:45 +1000)]
Attempt to address Windows buildbot failures

13 years agoAdd support for the send/recvmsg API to the socket module. Patch by David Watson...
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)

13 years agoNull merge; fix already present in default branch.
Nadeem Vawda [Sun, 21 Aug 2011 20:36:27 +0000 (22:36 +0200)]
Null merge; fix already present in default branch.

13 years agoIssue #12678: Fix distutils sdist test on Windows.
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.

13 years agoFix test_command_install_dist in shared Python builds
Éric Araujo [Sun, 21 Aug 2011 15:38:56 +0000 (17:38 +0200)]
Fix test_command_install_dist in shared Python builds

13 years agoFactor out the build_ext fixup for 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.

13 years agoRemove obsolete code
Éric Araujo [Sun, 21 Aug 2011 15:37:36 +0000 (17:37 +0200)]
Remove obsolete code

13 years agoMerge build_ext fix from 3.2
Éric Araujo [Sun, 21 Aug 2011 15:10:50 +0000 (17:10 +0200)]
Merge build_ext fix from 3.2

13 years agoFix distutils test_install for shared CPython builds
Éric Araujo [Sun, 21 Aug 2011 15:03:19 +0000 (17:03 +0200)]
Fix distutils test_install for shared CPython builds

13 years agoFactor out the build_ext fixup for shared Python 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.

13 years agoUpdate README section on testing following issue #11651.
Nadeem Vawda [Sun, 21 Aug 2011 14:48:54 +0000 (16:48 +0200)]
Update README section on testing following issue #11651.

13 years agoIssue #12804: Prevent "make test" from using network resources.
Nadeem Vawda [Sun, 21 Aug 2011 14:41:03 +0000 (16:41 +0200)]
Issue #12804: Prevent "make test" from using network resources.

13 years agoMerge 3.2
Éric Araujo [Sun, 21 Aug 2011 12:30:00 +0000 (14:30 +0200)]
Merge 3.2

13 years agoAdd missing name in shutil
Éric Araujo [Sun, 21 Aug 2011 12:29:18 +0000 (14:29 +0200)]
Add missing name in shutil

13 years agoMerge 3.2
Éric Araujo [Sun, 21 Aug 2011 10:54:06 +0000 (12:54 +0200)]
Merge 3.2

13 years agoAdd missing closing paren in docstring (thanks Ezio)
Éric Araujo [Sun, 21 Aug 2011 10:53:37 +0000 (12:53 +0200)]
Add missing closing paren in docstring (thanks Ezio)

13 years agoIssue #12783: Fix test_posix failures on FreeBSD buildbots, due to
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.

13 years agoIssue #12326: update sys.platform doc for Linux
Victor Stinner [Sun, 21 Aug 2011 10:08:11 +0000 (12:08 +0200)]
Issue #12326: update sys.platform doc for Linux

13 years agoIssue #12326: refactor usage of sys.platform
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')

13 years ago#5301: merge with 3.2
Sandro Tosi [Sat, 20 Aug 2011 22:16:49 +0000 (00:16 +0200)]
#5301: merge with 3.2

13 years ago#5301: add image/vnd.microsoft.icon (.ico) MIME type
Sandro Tosi [Sat, 20 Aug 2011 22:16:18 +0000 (00:16 +0200)]
#5301: add image/vnd.microsoft.icon (.ico) MIME type

13 years agoIssue #12326: woops, I really mean 'linux', not 'linux2'
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

13 years agoClose #12326: sys.platform is now always 'linux' on Linux
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.

13 years agoMerge 3.2
Éric Araujo [Sat, 20 Aug 2011 18:02:04 +0000 (20:02 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Sat, 20 Aug 2011 18:00:07 +0000 (20:00 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Sat, 20 Aug 2011 17:57:42 +0000 (19:57 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Sat, 20 Aug 2011 17:55:58 +0000 (19:55 +0200)]
Branch merge

13 years agoFix sdist test on Windows (#12678). Patch by Jeremy Kloth.
Éric Araujo [Sat, 20 Aug 2011 17:52:07 +0000 (19:52 +0200)]
Fix sdist test on Windows (#12678).  Patch by Jeremy Kloth.

13 years agoIssue #12213: make it clear that BufferedRWPair shouldn't be called with the
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.

13 years agoIssue #12213: make it clear that BufferedRWPair shouldn't be called with the
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.

13 years ago#12787: merge with 3.2
Sandro Tosi [Sat, 20 Aug 2011 15:06:38 +0000 (17:06 +0200)]
#12787: merge with 3.2

13 years ago#12787: link original MultiCall proposal to webarchive and in a footnote
Sandro Tosi [Sat, 20 Aug 2011 15:05:56 +0000 (17:05 +0200)]
#12787: link original MultiCall proposal to webarchive and in a footnote

13 years agoIssue #12213: Fix a buffering bug with interleaved reads and writes that
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.

13 years agoIssue #12213: Fix a buffering bug with interleaved reads and writes that
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.

13 years agoIssue #12791: Break reference cycles early when a generator exits with an exception.
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.

13 years agoIssue #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.

13 years agoIssue #12326: sys.platform is now always 'linux2' on Linux
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.

13 years agoAdd a simple test for the packaging RECORD file.
É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).

13 years agoMinor cleanup
É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

13 years agoAdd a test for extension modules in the old-style record file
É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

13 years agoRework test_old_record a bit to make the test more exact
É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)

13 years agoRefactor the copying of xxmodule.c in packaging tests (#12141).
É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.

13 years agoDedent example in docstring
Éric Araujo [Sat, 20 Aug 2011 05:25:39 +0000 (07:25 +0200)]
Dedent example in docstring

13 years agoMerge 3.2
Éric Araujo [Sat, 20 Aug 2011 05:10:54 +0000 (07:10 +0200)]
Merge 3.2

13 years agoAdd a test for extension modules in the distutils record file.
É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.

13 years agoRework test_record a bit to make the test more exact
Éric Araujo [Sat, 20 Aug 2011 05:00:41 +0000 (07:00 +0200)]
Rework test_record a bit to make the test more exact

13 years agoRefactor the copying of xxmodule.c in distutils tests (#12141).
É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.

13 years agoFix compilation under Windows
Antoine Pitrou [Sat, 20 Aug 2011 01:19:34 +0000 (03:19 +0200)]
Fix compilation under Windows

13 years agomerge with 3.2
Sandro Tosi [Fri, 19 Aug 2011 20:55:24 +0000 (22:55 +0200)]
merge with 3.2

13 years agofix description of \r; thanks to Thomas Waldmann from docs@
Sandro Tosi [Fri, 19 Aug 2011 20:54:50 +0000 (22:54 +0200)]
fix description of \r; thanks to Thomas Waldmann from docs@

13 years agoFix typo in test names
Antoine Pitrou [Fri, 19 Aug 2011 18:33:11 +0000 (20:33 +0200)]
Fix typo in test names

13 years agoFix typo in test names
Antoine Pitrou [Fri, 19 Aug 2011 18:32:34 +0000 (20:32 +0200)]
Fix typo in test names

13 years agomerge with 3.2
Sandro Tosi [Fri, 19 Aug 2011 16:40:56 +0000 (18:40 +0200)]
merge with 3.2

13 years agomention RFC1123 as origin of 4-year digit; thanks to John Haxby from docs@
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@

13 years agoIssue #12778: Reduce memory consumption when JSON-encoding a large container of many...
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.

13 years agoRestore $HOME after test has run (should fix #12765)
Éric Araujo [Fri, 19 Aug 2011 15:47:52 +0000 (17:47 +0200)]
Restore $HOME after test has run (should fix #12765)

13 years agoMerge 3.2
Éric Araujo [Fri, 19 Aug 2011 12:23:47 +0000 (14:23 +0200)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Fri, 19 Aug 2011 12:22:52 +0000 (14:22 +0200)]
Branch merge

13 years agoBranch merge
Éric Araujo [Fri, 19 Aug 2011 12:22:28 +0000 (14:22 +0200)]
Branch merge

13 years agoMerge fixes for #12256 and typos from 3.2
Éric Araujo [Fri, 19 Aug 2011 07:36:59 +0000 (09:36 +0200)]
Merge fixes for #12256 and typos from 3.2

13 years agoTypo
Éric Araujo [Fri, 19 Aug 2011 07:28:46 +0000 (09:28 +0200)]
Typo

13 years agoMention virtual subclasses in the glossary entry for ABCs (#12256).
Éric Araujo [Fri, 19 Aug 2011 07:07:46 +0000 (09:07 +0200)]
Mention virtual subclasses in the glossary entry for ABCs (#12256).

I added a link from the term “virtual subclass” to the glossary entry
for ABCs but this was not enough, now the glossary briefly defines
“virtual” and links to the abc module doc which contains more mentions
of virtual subclasses.

13 years agoIssue #12780: Merged fix from 3.2.
Vinay Sajip [Fri, 19 Aug 2011 06:15:45 +0000 (07:15 +0100)]
Issue #12780: Merged fix from 3.2.

13 years agoIssue #12780: Removed checks in logging for .pyc/.pyo in __file__.
Vinay Sajip [Fri, 19 Aug 2011 06:14:40 +0000 (07:14 +0100)]
Issue #12780: Removed checks in logging for .pyc/.pyo in __file__.

13 years agoMerge from 3.2
Eli Bendersky [Fri, 19 Aug 2011 03:31:10 +0000 (06:31 +0300)]
Merge from 3.2
Issue #12672: remove confusing part of sentence in documentation

13 years agoIssue #12672: remove confusing part of sentence in documentation
Eli Bendersky [Fri, 19 Aug 2011 03:29:51 +0000 (06:29 +0300)]
Issue #12672: remove confusing part of sentence in documentation

13 years agoMerge: Fix ResourceWarnings in test_subprocess.
Nadeem Vawda [Fri, 19 Aug 2011 03:14:40 +0000 (05:14 +0200)]
Merge: Fix ResourceWarnings in test_subprocess.

13 years agoFix ResourceWarnings in test_subprocess.
Nadeem Vawda [Fri, 19 Aug 2011 03:12:01 +0000 (05:12 +0200)]
Fix ResourceWarnings in test_subprocess.

13 years agoMark abc.abstractproperty as a property
Éric Araujo [Fri, 19 Aug 2011 01:53:51 +0000 (03:53 +0200)]
Mark abc.abstractproperty as a property

13 years agoFix typo in command name
Éric Araujo [Fri, 19 Aug 2011 01:44:36 +0000 (03:44 +0200)]
Fix typo in command name

13 years agoMerge 3.2
Éric Araujo [Fri, 19 Aug 2011 01:19:36 +0000 (03:19 +0200)]
Merge 3.2

13 years agoFix instance I missed in 59f7bbe1236c (#1626300)
Éric Araujo [Fri, 19 Aug 2011 01:12:38 +0000 (03:12 +0200)]
Fix instance I missed in 59f7bbe1236c (#1626300)