]>
granicus.if.org Git - python/log
Antoine Pitrou [Fri, 13 Sep 2013 22:39:15 +0000 (00:39 +0200)]
Issue #19013: add a __main__ to unittest.test.testmock to ease CLI invocation
Antoine Pitrou [Fri, 13 Sep 2013 22:37:18 +0000 (00:37 +0200)]
Issue #19013: add a __main__ to unittest.test to ease CLI invocation
Antoine Pitrou [Fri, 13 Sep 2013 21:54:01 +0000 (23:54 +0200)]
Issue #19013: add unittest.main() epilogs to unittest.mock's own test modules
Antoine Pitrou [Fri, 13 Sep 2013 21:52:46 +0000 (23:52 +0200)]
Issue #19013: add unittest.main() epilogs to unittest's own test modules
Ezio Melotti [Fri, 13 Sep 2013 20:54:41 +0000 (23:54 +0300)]
#18981: merge with 3.3.
Brett Cannon [Fri, 13 Sep 2013 20:52:19 +0000 (16:52 -0400)]
Issue #18955: clarify what is removed by importlib.util.module_for_loader.
Ezio Melotti [Fri, 13 Sep 2013 20:52:12 +0000 (23:52 +0300)]
#18981: fix a typo in a comment (noticed by Anoop Thomas Mathew).
Ezio Melotti [Fri, 13 Sep 2013 19:18:02 +0000 (22:18 +0300)]
#18951: merge with 3.3.
Ezio Melotti [Fri, 13 Sep 2013 19:17:40 +0000 (22:17 +0300)]
#18951: use consistent names in unittest docs.
Charles-François Natali [Fri, 13 Sep 2013 17:53:08 +0000 (19:53 +0200)]
Issue #16201: socket: Use inet_pton()/inet_addr() instead of ad-hoc parsing for
numeric IP addresses.
Eli Bendersky [Fri, 13 Sep 2013 13:27:52 +0000 (06:27 -0700)]
Merge for Issue #18997: Issue #18997: fix ElementTree crash with using pickle and __getstate__.
Eli Bendersky [Fri, 13 Sep 2013 13:24:59 +0000 (06:24 -0700)]
Add Germán M. Bravo to Misc/ACKS
Eli Bendersky [Fri, 13 Sep 2013 13:24:25 +0000 (06:24 -0700)]
Issue #18997: fix ElementTree crash with using pickle and __getstate__.
Based on report and initial patch from Germán M. Bravo
Eli Bendersky [Fri, 13 Sep 2013 12:30:00 +0000 (05:30 -0700)]
Issue #18945: Add tests for tempfile name collision handling.
Patch by Vlad Shcherbina
Eli Bendersky [Fri, 13 Sep 2013 12:28:20 +0000 (05:28 -0700)]
Issue #18945: Add tests for tempfile name collision handling.
Patch by Vlad Shcherbina
Serhiy Storchaka [Fri, 13 Sep 2013 08:46:24 +0000 (11:46 +0300)]
Issue #18818: The "encodingname" part of PYTHONIOENCODING is now optional.
Senthil Kumaran [Fri, 13 Sep 2013 07:22:45 +0000 (00:22 -0700)]
Fix http.server's request handling case on trailing '/'.
Patch contributed by Vajrasky Kok. Addresses Issue #17324
Senthil Kumaran [Fri, 13 Sep 2013 07:21:18 +0000 (00:21 -0700)]
Fix http.server's request handling case on trailing '/'.
Patch contributed by Vajrasky Kok. Addresses Issue #17324
Serhiy Storchaka [Fri, 13 Sep 2013 04:49:36 +0000 (07:49 +0300)]
Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
Serhiy Storchaka [Fri, 13 Sep 2013 04:46:40 +0000 (07:46 +0300)]
Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
Senthil Kumaran [Thu, 12 Sep 2013 14:06:49 +0000 (07:06 -0700)]
Removing the merge conflict markers.
- my previous removal and hg resolve mark had still left them and hooks did not catch it too!
Senthil Kumaran [Thu, 12 Sep 2013 05:56:30 +0000 (22:56 -0700)]
Automated merge with file:///Users/skumaran/python/cpython
Senthil Kumaran [Thu, 12 Sep 2013 05:56:28 +0000 (22:56 -0700)]
Automated merge with ssh://hg.python.org/cpython
Senthil Kumaran [Thu, 12 Sep 2013 05:55:54 +0000 (22:55 -0700)]
merge from 3.3
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
Senthil Kumaran [Thu, 12 Sep 2013 05:54:31 +0000 (22:54 -0700)]
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
Serhiy Storchaka [Wed, 11 Sep 2013 19:48:52 +0000 (22:48 +0300)]
Issue #18988: The "Tab" key now works when a word is already autocompleted.
Serhiy Storchaka [Wed, 11 Sep 2013 19:46:27 +0000 (22:46 +0300)]
Issue #18988: The "Tab" key now works when a word is already autocompleted.
Raymond Hettinger [Wed, 11 Sep 2013 06:15:40 +0000 (01:15 -0500)]
Issue #18962: Optimize the single iterator case for heapq.merge()
Suggested by Wouter Bolsterlee.
Senthil Kumaran [Tue, 10 Sep 2013 05:40:13 +0000 (22:40 -0700)]
merge from 3.3
Clarify mmap.close method behavior. Addresses issue #18815
Patch contributed by Anoop Thomas Mathew.
Senthil Kumaran [Tue, 10 Sep 2013 05:39:28 +0000 (22:39 -0700)]
Clarify mmap.close method behavior. Addresses issue #18815
Patch contributed by Anoop Thomas Mathew.
Senthil Kumaran [Tue, 10 Sep 2013 02:58:20 +0000 (19:58 -0700)]
merge from 3.3
Document Fraction's numerator and denominator properties.
Addresses issue #18800
Senthil Kumaran [Tue, 10 Sep 2013 02:57:37 +0000 (19:57 -0700)]
Document Fraction's numerator and denominator properties.
Addresses issue #18800
Tim Peters [Mon, 9 Sep 2013 23:48:24 +0000 (18:48 -0500)]
Get "stopped" back into repr(Thread) when appropriate.
Due to recent changes, a Thread doesn't know that it's over before
someone calls .join() or .is_alive(). That meant repr(Thread)
continued to include "started" (and not "stopped") before one of
those methods was called, even if hours passed since the thread
ended.
Repaired that.
Tim Peters [Mon, 9 Sep 2013 19:41:50 +0000 (14:41 -0500)]
Another stab at the thread cleanup patch.
Antoine Pitrou found a variation that worked for him on the
thread+fork tests, and added an important
self._is_stopped = True
to the after-fork code. I confess I don't know why things passed
before. But then mixing fork with threads is insane ;-)
Tim Peters [Mon, 9 Sep 2013 18:47:16 +0000 (13:47 -0500)]
Backed out changeset
1f5a7853680c
Unixy buildbots were failing the thread + fork tests :-(
Tim Peters [Mon, 9 Sep 2013 17:57:10 +0000 (12:57 -0500)]
Minor cleanup of the new scheme for detecting thread termination.
Documented some obscurities, and assert'ed ._stop()'s crucial precondition.
Larry Hastings [Mon, 9 Sep 2013 12:12:21 +0000 (21:12 +0900)]
Merge.
Larry Hastings [Mon, 9 Sep 2013 12:08:52 +0000 (21:08 +0900)]
Post-3.4.0a2-release fixups.
Mark Dickinson [Mon, 9 Sep 2013 09:34:56 +0000 (10:34 +0100)]
Merge docstring typo fix from 3.3
Mark Dickinson [Mon, 9 Sep 2013 09:34:24 +0000 (10:34 +0100)]
Docstring typo fix: Arithmentic -> Arithmetic.
Raymond Hettinger [Mon, 9 Sep 2013 07:02:05 +0000 (02:02 -0500)]
merge
Raymond Hettinger [Mon, 9 Sep 2013 07:01:35 +0000 (02:01 -0500)]
Issue 18752: Make chain.from_iterable() more visible in the documentation.
Raymond Hettinger [Mon, 9 Sep 2013 06:55:31 +0000 (01:55 -0500)]
merge
Raymond Hettinger [Mon, 9 Sep 2013 06:55:07 +0000 (01:55 -0500)]
merge
Raymond Hettinger [Mon, 9 Sep 2013 06:54:27 +0000 (01:54 -0500)]
Issue 18301: The classmethod decorator didn't fit well with the rough-equivalent example code.
Ethan Furman [Mon, 9 Sep 2013 06:48:34 +0000 (23:48 -0700)]
Close #18980: Enum doc fixes. Patch from Elazar Gershuni.
Raymond Hettinger [Mon, 9 Sep 2013 06:29:40 +0000 (01:29 -0500)]
Issue 18752: Make chain.from_iterable() more visible in the documentation.
Tim Peters [Sun, 8 Sep 2013 23:44:40 +0000 (18:44 -0500)]
Issue 18984: Remove ._stopped Event from Thread internals.
The fix for issue 18808 left us checking two things to be sure a Thread
was done: an Event (._stopped) and a mutex (._tstate_lock). Clumsy &
brittle. This patch removes the Event, leaving just a happy lock :-)
The bulk of the patch removes two excruciating tests, which were
verifying sanity of the internals of the ._stopped Event after a fork.
Thanks to Antoine Pitrou for verifying that's the only real value
these tests had.
One consequence of moving from an Event to a mutex: waiters (threads
calling Thread.join()) used to block each on their own unique mutex
(internal to the ._stopped event), but now all contend on the same
mutex (._tstate_lock). These approaches have different performance
characteristics on different platforms. I don't think it matters in
this context.
Serhiy Storchaka [Sun, 8 Sep 2013 17:43:02 +0000 (20:43 +0300)]
Fix a typo. (closes #18953)
Serhiy Storchaka [Sun, 8 Sep 2013 17:42:13 +0000 (20:42 +0300)]
Fix a typo. (closes #18953)
Serhiy Storchaka [Sun, 8 Sep 2013 17:31:20 +0000 (20:31 +0300)]
Fixed tests with Tcl/Tk <8.5 (closes #18964).
Serhiy Storchaka [Sun, 8 Sep 2013 17:29:37 +0000 (20:29 +0300)]
Fixed tests with Tcl/Tk <8.5 (closes #18964).
Victor Stinner [Sun, 8 Sep 2013 12:14:38 +0000 (14:14 +0200)]
Issue #18904: test_os and test_socket use unittest.skipIf() to check if fcntl
module is present (to record skipped tests)
Antoine Pitrou [Sun, 8 Sep 2013 11:19:06 +0000 (13:19 +0200)]
Issue #18808 again: fix the after-fork logic for not-yet-started or already-stopped threads.
(AFAICT, in theory, we must reset all the locks, not just those in use)
Charles-François Natali [Sun, 8 Sep 2013 10:35:53 +0000 (12:35 +0200)]
Merge.
Charles-François Natali [Sun, 8 Sep 2013 10:31:32 +0000 (12:31 +0200)]
Issue #18963: skip test_selectors.test_above_fd_setsize on older OS X versions.
Charles-François Natali [Sun, 8 Sep 2013 10:27:33 +0000 (12:27 +0200)]
Issue #18935: Fix test_regrtest.test_timeout when built --without-threads (the
'--timeout' option requires faulthandler.dump_traceback_later).
Victor Stinner [Sun, 8 Sep 2013 09:53:09 +0000 (11:53 +0200)]
Issue #18904: test_socket: add inheritance tests using fcntl and FD_CLOEXEC
Victor Stinner [Sun, 8 Sep 2013 09:47:54 +0000 (11:47 +0200)]
Issue #18904: Improve os.get/set_inheritable() tests
Victor Stinner [Sun, 8 Sep 2013 09:36:23 +0000 (11:36 +0200)]
Close #18957: The PYTHONFAULTHANDLER environment variable now only enables the
faulthandler module if the variable is non-empty. Same behaviour than other
variables like PYTHONDONTWRITEBYTECODE.
Charles-François Natali [Sun, 8 Sep 2013 09:34:42 +0000 (11:34 +0200)]
Issue #18963: Fix test_selectors.test_above_fd_setsize on OS X, where the
default RLIMIT_NOFILE hard limit can be RLIMIT_INFINITY.
Charles-François Natali [Sun, 8 Sep 2013 09:30:53 +0000 (11:30 +0200)]
Issue #18934: Use poll/select-based selectors for multiprocessing.Connection,
to avoid one extra FD per Connection.
Raymond Hettinger [Sun, 8 Sep 2013 07:25:57 +0000 (00:25 -0700)]
Put the defines in the logical section and fix indentation.
Senthil Kumaran [Sun, 8 Sep 2013 06:20:06 +0000 (23:20 -0700)]
merge from 3.3
Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry.
Addresses issue #18438
Senthil Kumaran [Sun, 8 Sep 2013 06:19:29 +0000 (23:19 -0700)]
Fix the dead link of IEEE_854-1987 standard with the Wikipedia entry.
Addresses issue #18438
Raymond Hettinger [Sun, 8 Sep 2013 05:06:35 +0000 (22:06 -0700)]
Minor code beautification.
Raymond Hettinger [Sun, 8 Sep 2013 04:01:29 +0000 (21:01 -0700)]
Improve code clarity by removing two unattractive macros.
Raymond Hettinger [Sun, 8 Sep 2013 03:26:50 +0000 (20:26 -0700)]
Remove the freelist scheme for setobjects.
The setobject freelist was consuming memory but not providing much value.
Even when a freelisted setobject was available, most of the setobject
fields still needed to be initialized and the small table still required
a memset(). This meant that the custom freelisting scheme for sets was
providing almost no incremental benefit over the default Python freelist
scheme used by _PyObject_Malloc() in Objects/obmalloc.c.
Nick Coghlan [Sun, 8 Sep 2013 02:49:53 +0000 (12:49 +1000)]
Merge #18952 fix from 3.3
Tim Peters [Sun, 8 Sep 2013 02:23:03 +0000 (21:23 -0500)]
Issue 18808: blind attempt to repair some buildbot failures.
test_is_alive_after_fork is failing on some old Linux kernels, but
passing on all newer ones. Since virtually anything can go wrong
with locks when mixing threads with fork, replace the most likely
cause with a redundant simple data member.
Nick Coghlan [Sun, 8 Sep 2013 01:40:34 +0000 (11:40 +1000)]
Close #18952: correctly download test support data
When test.support was converted to a package, it started silently
skipping the tests which needed to download support data to run.
This change refactors the affected code, and also tidies up
test.support.findfile to remove the unused *here* parameter, document
the *subdir* parameter and rename the *filename* parameter to avoid
shadowing the file builtin and be consistent with the documentation.
The unexpected skips were noticed and reported by Zachary Ware
Senthil Kumaran [Sun, 8 Sep 2013 00:52:38 +0000 (17:52 -0700)]
merge from 3.3
Correct Profile class usage example. Addresses issue #18033.
Patch contributed by Olivier Hervieu and Dmi Baranov.
Senthil Kumaran [Sun, 8 Sep 2013 00:51:58 +0000 (17:51 -0700)]
Correct Profile class usage example. Addresses issue #18033.
Patch contributed by Olivier Hervieu and Dmi Baranov.
Raymond Hettinger [Sun, 8 Sep 2013 00:41:01 +0000 (17:41 -0700)]
Small rearrangement to bring together the three functions for probing the hash table.
Raymond Hettinger [Sat, 7 Sep 2013 22:05:00 +0000 (15:05 -0700)]
Move the overview comment to the top of the file.
Antoine Pitrou [Sat, 7 Sep 2013 21:38:37 +0000 (23:38 +0200)]
Issue #18808: Thread.join() now waits for the underlying thread state to be destroyed before returning.
This prevents unpredictable aborts in Py_EndInterpreter() when some non-daemon threads are still running.
Senthil Kumaran [Sat, 7 Sep 2013 21:12:55 +0000 (14:12 -0700)]
Fix the merge conflict
Senthil Kumaran [Sat, 7 Sep 2013 21:09:48 +0000 (14:09 -0700)]
merge from 3.3
Fix License URL display and add test to check for license url presence.
Fixes issue #18206 Patch contributed by Berker Peksag and py.user
Senthil Kumaran [Sat, 7 Sep 2013 20:59:17 +0000 (13:59 -0700)]
Fix License URL display and add test to check for license url presence.
Fixes issue #18206 Patch contributed by Berker Peksag and py.user
Senthil Kumaran [Sat, 7 Sep 2013 18:30:04 +0000 (11:30 -0700)]
merge from 3.3
Removing the mention of os.isatty mention as Unix only
Correct the wrong documentation.
Senthil Kumaran [Sat, 7 Sep 2013 18:28:58 +0000 (11:28 -0700)]
Removing the mention of os.isatty mention as Unix only
Correct the wrong documentation.
Richard Oudkerk [Sat, 7 Sep 2013 16:40:45 +0000 (17:40 +0100)]
Fix conversion from Py_ssize_t to int.
Ezio Melotti [Sat, 7 Sep 2013 12:24:01 +0000 (15:24 +0300)]
#18895: merge with 3.3.
Ezio Melotti [Sat, 7 Sep 2013 12:23:36 +0000 (15:23 +0300)]
#18895: split a sentence in unittest docs.
Ezio Melotti [Sat, 7 Sep 2013 12:20:03 +0000 (15:20 +0300)]
#18894: merge with 3.3.
Ezio Melotti [Sat, 7 Sep 2013 12:19:30 +0000 (15:19 +0300)]
#18894: remove mention of deprecated fail* methods.
Larry Hastings [Sat, 7 Sep 2013 11:42:24 +0000 (23:42 +1200)]
Added tag v3.4.0a2 for changeset
9265a2168e2c
Larry Hastings [Sat, 7 Sep 2013 11:42:07 +0000 (23:42 +1200)]
Version number bump for Python 3.4.0a2.
Larry Hastings [Sat, 7 Sep 2013 11:41:12 +0000 (23:41 +1200)]
Update pydoc topic index for Python 3.4.0a2.
Victor Stinner [Sat, 7 Sep 2013 08:36:04 +0000 (10:36 +0200)]
Close #18954: Fix some typo in fileutils.c comments
Patch written by Vajrasky Kok.
Ethan Furman [Sat, 7 Sep 2013 02:58:01 +0000 (19:58 -0700)]
Added Elazar to Misc/ACKS.
Ethan Furman [Sat, 7 Sep 2013 02:53:30 +0000 (19:53 -0700)]
Close #18908: Keep Enum docs in their own section. Patch by Elazar Gershuni.
Ned Deily [Fri, 6 Sep 2013 22:16:19 +0000 (15:16 -0700)]
Issue #18458: Prevent crashes with newer versions of libedit. Its readline
emulation has changed from 0-based indexing to 1-based like gnu readline.
Original patch by Ronald Oussoren.
Tim Peters [Fri, 6 Sep 2013 20:42:47 +0000 (15:42 -0500)]
Merge 3.3 into default.
Issue 18944: fix a 1-character typo in test_set.py.
The error caused test_inline_methods() to test much less than intended.
Caught (& fixed) by Armin Rigo.
Tim Peters [Fri, 6 Sep 2013 20:41:30 +0000 (15:41 -0500)]
Issue 18944: fix a 1-character typo in test_set.py.
The error caused test_inline_methods() to test much less than intended.
Caught (& fixed) by Armin Rigo.
Antoine Pitrou [Fri, 6 Sep 2013 19:18:25 +0000 (21:18 +0200)]
Remove old-school inheritance
Charles-François Natali [Fri, 6 Sep 2013 19:12:22 +0000 (21:12 +0200)]
Issue #18934: Relax test_multiprocessing.test_invalid_handles a bit: we just
want to check that Connection.poll() doesn't crash.
Antoine Pitrou [Fri, 6 Sep 2013 18:50:00 +0000 (20:50 +0200)]
Issue #18623: Factor out the _SuppressCoreFiles context manager into test.support.
Patch by Valerie Lambert.
R David Murray [Fri, 6 Sep 2013 17:08:08 +0000 (13:08 -0400)]
#18852: Handle readline.__doc__ being None in site.py readline activation.
Patch by Berker Peksag.
Ethan Furman [Fri, 6 Sep 2013 14:16:48 +0000 (07:16 -0700)]
Close #18924: Block naive attempts to change an Enum member.