]> granicus.if.org Git - python/log
python
9 years agoMerge with 3.5
Terry Jan Reedy [Sun, 4 Oct 2015 04:31:36 +0000 (00:31 -0400)]
Merge with 3.5

9 years agoMerge with 3.4
Terry Jan Reedy [Sun, 4 Oct 2015 04:31:23 +0000 (00:31 -0400)]
Merge with 3.4

9 years agoIssue #24820: Add 'IDLE Dark' text color theme, warning, and solution.
Terry Jan Reedy [Sun, 4 Oct 2015 04:31:05 +0000 (00:31 -0400)]
Issue #24820: Add 'IDLE Dark' text color theme, warning, and solution.

9 years agoIssue #9232: Escape rst markup char in NEWS entry to avoid Sphinx warning.
Terry Jan Reedy [Sun, 4 Oct 2015 03:03:15 +0000 (23:03 -0400)]
Issue #9232: Escape rst markup char in NEWS entry to avoid Sphinx warning.

9 years agoIssue #24791: Escape rst markup char in NEWS entry to avoid Sphinx warning.
Terry Jan Reedy [Sun, 4 Oct 2015 03:01:46 +0000 (23:01 -0400)]
Issue #24791: Escape rst markup char in NEWS entry to avoid Sphinx warning.

9 years agoIssue #25306: Try to fix test_huntrleaks_fd_leak() on Windows
Victor Stinner [Sat, 3 Oct 2015 19:40:21 +0000 (21:40 +0200)]
Issue #25306: Try to fix test_huntrleaks_fd_leak() on Windows

Issue #25306: Disable popup and logs to stderr on assertion failures in MSCRT.

9 years agoIssue #25306: Skip test_huntrleaks_fd_leak() of test_regrtest until the bug is
Victor Stinner [Sat, 3 Oct 2015 19:20:41 +0000 (21:20 +0200)]
Issue #25306: Skip test_huntrleaks_fd_leak() of test_regrtest until the bug is
fixed.

9 years agoIssue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 3...
Guido van Rossum [Sat, 3 Oct 2015 15:35:28 +0000 (08:35 -0700)]
Issue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 3.5->3.6.)

9 years agoIssue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 3...
Guido van Rossum [Sat, 3 Oct 2015 15:34:34 +0000 (08:34 -0700)]
Issue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel. (Merge 3.4->3.5.)

9 years agoIssue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel.
Guido van Rossum [Sat, 3 Oct 2015 15:31:42 +0000 (08:31 -0700)]
Issue #25304: Add asyncio.run_coroutine_threadsafe(). By Vincent Michel.

9 years agoIssue #16701: Merge sequence docs from 3.5
Martin Panter [Sat, 3 Oct 2015 07:54:08 +0000 (07:54 +0000)]
Issue #16701: Merge sequence docs from 3.5

9 years agoIssue #16701: Merge sequence docs from 3.4 into 3.5
Martin Panter [Sat, 3 Oct 2015 07:53:49 +0000 (07:53 +0000)]
Issue #16701: Merge sequence docs from 3.4 into 3.5

9 years agoIssue #16701: Document += and *= for mutable sequences
Martin Panter [Sat, 3 Oct 2015 07:46:04 +0000 (07:46 +0000)]
Issue #16701: Document += and *= for mutable sequences

9 years agoIssues #25232, #24657: Add NEWS to 3.6.0a1 section
Martin Panter [Sat, 3 Oct 2015 06:25:43 +0000 (06:25 +0000)]
Issues #25232, #24657: Add NEWS to 3.6.0a1 section

9 years agoIssues #25232, #24657: Merge two CGI server fixes from 3.5
Martin Panter [Sat, 3 Oct 2015 06:43:19 +0000 (06:43 +0000)]
Issues #25232, #24657: Merge two CGI server fixes from 3.5

9 years agoFactor out common iterator finalization code
Raymond Hettinger [Sat, 3 Oct 2015 06:17:33 +0000 (23:17 -0700)]
Factor out common iterator finalization code

9 years agoIssues #25232, #24657: Use new enum status to match rest of tests
Martin Panter [Sat, 3 Oct 2015 06:07:22 +0000 (06:07 +0000)]
Issues #25232, #24657: Use new enum status to match rest of tests

9 years agoIssues #25232, #24657: Merge two CGI server fixes from 3.4 into 3.5
Martin Panter [Sat, 3 Oct 2015 06:03:25 +0000 (06:03 +0000)]
Issues #25232, #24657: Merge two CGI server fixes from 3.4 into 3.5

9 years agoIssue #24657: Prevent CGIRequestHandler from collapsing the URL query
Martin Panter [Sat, 3 Oct 2015 05:55:46 +0000 (05:55 +0000)]
Issue #24657: Prevent CGIRequestHandler from collapsing the URL query

Initial patch from Xiang Zhang. Also fix out-of-date _url_collapse_path() doc
string.

9 years agoIssue #25232: Fix CGIRequestHandler's splitting of URL query
Martin Panter [Sat, 3 Oct 2015 05:38:07 +0000 (05:38 +0000)]
Issue #25232: Fix CGIRequestHandler's splitting of URL query

Patch from Xiang Zhang.

9 years agoMerge with 3.5
Terry Jan Reedy [Sat, 3 Oct 2015 03:25:54 +0000 (23:25 -0400)]
Merge with 3.5

9 years agoMerge with 3.4
Terry Jan Reedy [Sat, 3 Oct 2015 03:25:14 +0000 (23:25 -0400)]
Merge with 3.4

9 years agoIssue #25224: README.txt is now an idlelib index for IDLE developers and
Terry Jan Reedy [Sat, 3 Oct 2015 03:22:59 +0000 (23:22 -0400)]
Issue #25224: README.txt is now an idlelib index for IDLE developers and
curious users.  The previous user content is now in the IDLE doc and is
redundant.  IDLE now means 'Integrated Development and Learning Environment'.

9 years agoMerge with 3.5
Terry Jan Reedy [Sat, 3 Oct 2015 02:12:57 +0000 (22:12 -0400)]
Merge with 3.5

9 years agoMerge with 3.4
Terry Jan Reedy [Sat, 3 Oct 2015 02:12:39 +0000 (22:12 -0400)]
Merge with 3.4

9 years agoIssue #24820: Users can now set breakpoint colors in Settings ->
Terry Jan Reedy [Sat, 3 Oct 2015 02:12:17 +0000 (22:12 -0400)]
Issue #24820: Users can now set breakpoint colors in Settings ->
Custom Highlighting. Original patch by Mark Roseman.

9 years agoIssue #18174: Fix test_regrtest when Python is compiled in release mode
Victor Stinner [Sat, 3 Oct 2015 00:21:35 +0000 (02:21 +0200)]
Issue #18174: Fix test_regrtest when Python is compiled in release mode

9 years agoFix _PyUnicodeWriter_PrepareKind()
Victor Stinner [Fri, 2 Oct 2015 23:55:51 +0000 (01:55 +0200)]
Fix _PyUnicodeWriter_PrepareKind()

Initialize kind to 0 (PyUnicode_WCHAR_KIND) to ensure that
_PyUnicodeWriter_PrepareKind() handles correctly read-only buffer: copy the
buffer.

9 years agoMerge from 3.5 for issue #25188.
Brett Cannon [Fri, 2 Oct 2015 23:20:49 +0000 (16:20 -0700)]
Merge from 3.5 for issue #25188.

9 years agoIssue #25188: Add a -P/--pgo flag to regrtest to silence error output.
Brett Cannon [Fri, 2 Oct 2015 23:16:44 +0000 (16:16 -0700)]
Issue #25188: Add a -P/--pgo flag to regrtest to silence error output.

Since PGO building doesn't care about test failures, silence them when
running the test suite for performance reasons. Initial patch by
Alecsandru Patrascu of Intel.

9 years agoIssue #22806: Add ``python -m test --list-tests`` command to list tests.
Victor Stinner [Fri, 2 Oct 2015 22:21:12 +0000 (00:21 +0200)]
Issue #22806: Add ``python -m test --list-tests`` command to list tests.

9 years agoIssue #18174: "python -m test --huntrleaks ..." now also checks for leak of
Victor Stinner [Fri, 2 Oct 2015 22:20:56 +0000 (00:20 +0200)]
Issue #18174: "python -m test --huntrleaks ..." now also checks for leak of
file descriptors. Patch written by Richard Oudkerk.

9 years agoIssue #25287: Don't add crypt.METHOD_CRYPT to crypt.methods if it's not
Victor Stinner [Fri, 2 Oct 2015 21:00:39 +0000 (23:00 +0200)]
Issue #25287: Don't add crypt.METHOD_CRYPT to crypt.methods if it's not
supported. Check if it is supported, it may not be supported on OpenBSD for
example.

9 years agoMerge from 3.5
Berker Peksag [Fri, 2 Oct 2015 20:29:13 +0000 (23:29 +0300)]
Merge from 3.5

Hg: --

9 years agoTweak susp-ignored.csv to make buildbots happy
Berker Peksag [Fri, 2 Oct 2015 20:28:45 +0000 (23:28 +0300)]
Tweak susp-ignored.csv to make buildbots happy

9 years agoasyncio: Make ensure_future() accept all kinds of awaitables. (Merge 3.5)
Yury Selivanov [Fri, 2 Oct 2015 19:09:51 +0000 (15:09 -0400)]
asyncio: Make ensure_future() accept all kinds of awaitables. (Merge 3.5)

9 years agoasyncio: Make ensure_future() accept all kinds of awaitables.
Yury Selivanov [Fri, 2 Oct 2015 19:05:59 +0000 (15:05 -0400)]
asyncio: Make ensure_future() accept all kinds of awaitables.

9 years agoasyncio: ensure_future() now understands awaitables
Yury Selivanov [Fri, 2 Oct 2015 19:00:19 +0000 (15:00 -0400)]
asyncio: ensure_future() now understands awaitables

9 years agoIssue #25290: Fix typo in csv.reader() docstring
Berker Peksag [Fri, 2 Oct 2015 16:26:14 +0000 (19:26 +0300)]
Issue #25290: Fix typo in csv.reader() docstring

Patch by Johannes Niediek.

9 years agoIssue #25290: Fix typo in csv.reader() docstring
Berker Peksag [Fri, 2 Oct 2015 16:25:53 +0000 (19:25 +0300)]
Issue #25290: Fix typo in csv.reader() docstring

Patch by Johannes Niediek.

9 years agoIssue #25290: Fix typo in csv.reader() docstring
Berker Peksag [Fri, 2 Oct 2015 16:25:32 +0000 (19:25 +0300)]
Issue #25290: Fix typo in csv.reader() docstring

Patch by Johannes Niediek.

9 years agoIssue #24848: Fixed bugs in UTF-7 decoding of misformed data:
Serhiy Storchaka [Fri, 2 Oct 2015 10:14:03 +0000 (13:14 +0300)]
Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:

1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
3. In some circumstances the '\xfd' character was produced instead of the
replacement character '\ufffd' (due to a bug in _PyUnicodeWriter).

9 years agoIssue #24848: Fixed bugs in UTF-7 decoding of misformed data:
Serhiy Storchaka [Fri, 2 Oct 2015 10:13:14 +0000 (13:13 +0300)]
Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:

1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
3. In some circumstances the '\xfd' character was produced instead of the
replacement character '\ufffd' (due to a bug in _PyUnicodeWriter).

9 years agoIssue #24848: Fixed bugs in UTF-7 decoding of misformed data:
Serhiy Storchaka [Fri, 2 Oct 2015 10:07:28 +0000 (13:07 +0300)]
Issue #24848: Fixed bugs in UTF-7 decoding of misformed data:

1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.

9 years agoIssue #24483: C implementation of functools.lru_cache() now calculates key's
Serhiy Storchaka [Fri, 2 Oct 2015 09:47:59 +0000 (12:47 +0300)]
Issue #24483: C implementation of functools.lru_cache() now calculates key's
hash only once.

9 years agoIssue #24483: C implementation of functools.lru_cache() now calculates key's
Serhiy Storchaka [Fri, 2 Oct 2015 09:47:11 +0000 (12:47 +0300)]
Issue #24483: C implementation of functools.lru_cache() now calculates key's
hash only once.

9 years agoMerge from 3.5
Steve Dower [Thu, 1 Oct 2015 22:20:11 +0000 (15:20 -0700)]
Merge from 3.5

9 years agoIssue #25165: Windows uninstallation should not remove launcher if other versions...
Steve Dower [Thu, 1 Oct 2015 22:19:39 +0000 (15:19 -0700)]
Issue #25165: Windows uninstallation should not remove launcher if other versions remain

9 years agoImproves support for building unofficial versions of the Windows installer.
Steve Dower [Thu, 1 Oct 2015 22:18:53 +0000 (15:18 -0700)]
Improves support for building unofficial versions of the Windows installer.

9 years agoMake _PyUnicode_TranslateCharmap() symbol private
Victor Stinner [Thu, 1 Oct 2015 20:07:32 +0000 (22:07 +0200)]
Make _PyUnicode_TranslateCharmap() symbol private

unicodeobject.h exposes PyUnicode_TranslateCharmap() and PyUnicode_Translate().

9 years agoUpdate importlib_external.h
Victor Stinner [Thu, 1 Oct 2015 20:06:54 +0000 (22:06 +0200)]
Update importlib_external.h

9 years agoIssue #25267: The UTF-8 encoder is now up to 75 times as fast for error
Victor Stinner [Thu, 1 Oct 2015 19:54:51 +0000 (21:54 +0200)]
Issue #25267: The UTF-8 encoder is now up to 75 times as fast for error
handlers: ``ignore``, ``replace``, ``surrogateescape``, ``surrogatepass``.
Patch co-written with Serhiy Storchaka.

9 years agoCloses #24884: refactored WatchedFileHandler file reopening into a separate method...
Vinay Sajip [Thu, 1 Oct 2015 19:54:41 +0000 (20:54 +0100)]
Closes #24884: refactored WatchedFileHandler file reopening into a separate method, based on a suggestion and patch by Marian Horban.

9 years agoFixes #25097: Merged fix from 3.5.
Vinay Sajip [Thu, 1 Oct 2015 19:39:30 +0000 (20:39 +0100)]
Fixes #25097: Merged fix from 3.5.

9 years agoFixes #25097: Merged fi from 3.4.
Vinay Sajip [Thu, 1 Oct 2015 19:38:53 +0000 (20:38 +0100)]
Fixes #25097: Merged fi from 3.4.

9 years agoFixes #25097: Windows test is skipped if there are insufficient privileges, rather...
Vinay Sajip [Thu, 1 Oct 2015 19:37:54 +0000 (20:37 +0100)]
Fixes #25097: Windows test is skipped if there are insufficient privileges, rather than failing.

9 years agoIssue #25277: Set a timeout of 10 minutes in test_eintr using faulthandler to
Victor Stinner [Thu, 1 Oct 2015 11:16:43 +0000 (13:16 +0200)]
Issue #25277: Set a timeout of 10 minutes in test_eintr using faulthandler to
try to debug a hang on the FreeBSD 9 buildbot.

Run also eintr_tester.py with python "-u" command line option to try to get the
full output on hang/crash.

9 years agoCloses #25185: merged fix from 3.5.
Vinay Sajip [Thu, 1 Oct 2015 10:28:34 +0000 (11:28 +0100)]
Closes #25185: merged fix from 3.5.

9 years agoCloses #25185: merged fix from 3.4.
Vinay Sajip [Thu, 1 Oct 2015 10:27:57 +0000 (11:27 +0100)]
Closes #25185: merged fix from 3.4.

9 years agoCloses #25185: Use UTF-8 encoding when reading pyvenv.cfg.
Vinay Sajip [Thu, 1 Oct 2015 10:27:00 +0000 (11:27 +0100)]
Closes #25185: Use UTF-8 encoding when reading pyvenv.cfg.

9 years agoIssue #25280: Import trace messages emitted in verbose (-v) mode are no
Serhiy Storchaka [Thu, 1 Oct 2015 08:55:52 +0000 (11:55 +0300)]
Issue #25280: Import trace messages emitted in verbose (-v) mode are no
longer formatted twice.

9 years agoIssue #25280: Import trace messages emitted in verbose (-v) mode are no
Serhiy Storchaka [Thu, 1 Oct 2015 08:40:22 +0000 (11:40 +0300)]
Issue #25280: Import trace messages emitted in verbose (-v) mode are no
longer formatted twice.

9 years agoIssue #25280: Import trace messages emitted in verbose (-v) mode are no
Serhiy Storchaka [Thu, 1 Oct 2015 08:08:50 +0000 (11:08 +0300)]
Issue #25280: Import trace messages emitted in verbose (-v) mode are no
longer formatted twice.

9 years agoMerge 3.5
Victor Stinner [Thu, 1 Oct 2015 08:01:31 +0000 (10:01 +0200)]
Merge 3.5

9 years agoMerge 3.4 (os.urandom)
Victor Stinner [Thu, 1 Oct 2015 08:00:23 +0000 (10:00 +0200)]
Merge 3.4 (os.urandom)

9 years agoIssue #25003: os.urandom() doesn't use getentropy() on Solaris because
Victor Stinner [Thu, 1 Oct 2015 07:59:32 +0000 (09:59 +0200)]
Issue #25003: os.urandom() doesn't use getentropy() on Solaris because
getentropy() is blocking, whereas os.urandom() should not block. getentropy()
is supported since Solaris 11.3.

9 years agoMerge 3.5
Victor Stinner [Thu, 1 Oct 2015 07:51:02 +0000 (09:51 +0200)]
Merge 3.5

9 years agoIssue #25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()
Victor Stinner [Thu, 1 Oct 2015 07:47:30 +0000 (09:47 +0200)]
Issue #25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()
function instead of the getentropy() function. The getentropy() function is
blocking to generate very good quality entropy, os.urandom() doesn't need such
high-quality entropy.

9 years ago(Merge 3.5) Issue #25274: test_recursionlimit_recovery() of test_sys now checks
Victor Stinner [Thu, 1 Oct 2015 06:56:54 +0000 (08:56 +0200)]
(Merge 3.5) Issue #25274: test_recursionlimit_recovery() of test_sys now checks
sys.gettrace() when the test is executed, not when the module is loaded.

sys.settrace() may be after after the test is loaded.

9 years ago(Merge 3.4) Issue #25274: test_recursionlimit_recovery() of test_sys now checks
Victor Stinner [Thu, 1 Oct 2015 06:56:27 +0000 (08:56 +0200)]
(Merge 3.4) Issue #25274: test_recursionlimit_recovery() of test_sys now checks
sys.gettrace() when the test is executed, not when the module is loaded.

sys.settrace() may be after after the test is loaded.

9 years agoIssue #25274: test_recursionlimit_recovery() of test_sys now checks
Victor Stinner [Thu, 1 Oct 2015 06:55:33 +0000 (08:55 +0200)]
Issue #25274: test_recursionlimit_recovery() of test_sys now checks
sys.gettrace() when the test is executed, not when the module is loaded.

sys.settrace() may be after after the test is loaded.

9 years agoMerge 3.5 -> default
Andrew Svetlov [Thu, 1 Oct 2015 06:49:03 +0000 (09:49 +0300)]
Merge 3.5 -> default

9 years agoMerge 3.4 -> 3.5
Andrew Svetlov [Thu, 1 Oct 2015 06:48:36 +0000 (09:48 +0300)]
Merge 3.4 -> 3.5

9 years agoReflect parameter name change in the doc
Andrew Svetlov [Thu, 1 Oct 2015 06:48:08 +0000 (09:48 +0300)]
Reflect parameter name change in the doc

9 years agoFix _PyTime_AsTimevalStruct_impl() on OpenBSD
Victor Stinner [Thu, 1 Oct 2015 06:44:03 +0000 (08:44 +0200)]
Fix _PyTime_AsTimevalStruct_impl() on OpenBSD

On the x86 OpenBSD 5.8 buildbot, the integer overflow check is ignored. Copy
the tv_sec variable into a Py_time_t variable instead of "simply" casting it to
Py_time_t, to fix the integer overflow check.

9 years agoAdd fast paths to deque_init() for the common cases
Raymond Hettinger [Thu, 1 Oct 2015 06:15:02 +0000 (23:15 -0700)]
Add fast paths to deque_init() for the common cases

9 years agoFix regrtest --coverage on Windows
Victor Stinner [Wed, 30 Sep 2015 22:53:09 +0000 (00:53 +0200)]
Fix regrtest --coverage on Windows

Issue #25260: Fix ``python -m test --coverage`` on Windows. Remove the list of
ignored directories.

9 years agoBackout change 28d3bcb1bad6: "Try to fix _PyTime_AsTimevalStruct_impl() on
Victor Stinner [Wed, 30 Sep 2015 20:50:12 +0000 (22:50 +0200)]
Backout change 28d3bcb1bad6: "Try to fix _PyTime_AsTimevalStruct_impl() on
OpenBSD", I'm not sure that the change was really needed. I read the test
result of an old build because the OpenBSD was 100 builds late.

9 years agoIssue #25171: Fix compilation issue on OpenBSD in random.c
Victor Stinner [Wed, 30 Sep 2015 20:06:51 +0000 (22:06 +0200)]
Issue #25171: Fix compilation issue on OpenBSD in random.c

Patch written by Remi Pointel.

9 years ago(Merge 3.5) Issue #25182: Fix compilation on Windows
Victor Stinner [Wed, 30 Sep 2015 13:03:50 +0000 (15:03 +0200)]
(Merge 3.5) Issue #25182: Fix compilation on Windows

9 years ago(Merge 3.4) Issue #25182: Fix compilation on Windows
Victor Stinner [Wed, 30 Sep 2015 13:03:31 +0000 (15:03 +0200)]
(Merge 3.4) Issue #25182: Fix compilation on Windows

9 years agoIssue #25182: Fix compilation on Windows
Victor Stinner [Wed, 30 Sep 2015 13:01:34 +0000 (15:01 +0200)]
Issue #25182: Fix compilation on Windows

Restore also errno value before calling PyErr_SetFromErrno().

9 years agoIssue #25182: The stdprinter (used as sys.stderr before the io module is
Serhiy Storchaka [Wed, 30 Sep 2015 12:51:01 +0000 (15:51 +0300)]
Issue #25182: The stdprinter (used as sys.stderr before the io module is
imported at startup) now uses the backslashreplace error handler.

9 years agoIssue #25182: The stdprinter (used as sys.stderr before the io module is
Serhiy Storchaka [Wed, 30 Sep 2015 12:50:32 +0000 (15:50 +0300)]
Issue #25182: The stdprinter (used as sys.stderr before the io module is
imported at startup) now uses the backslashreplace error handler.

9 years agoIssue #25182: The stdprinter (used as sys.stderr before the io module is
Serhiy Storchaka [Wed, 30 Sep 2015 12:46:53 +0000 (15:46 +0300)]
Issue #25182: The stdprinter (used as sys.stderr before the io module is
imported at startup) now uses the backslashreplace error handler.

9 years agoIssue #25220: Fix "-m test --forever"
Victor Stinner [Wed, 30 Sep 2015 11:51:17 +0000 (13:51 +0200)]
Issue #25220: Fix "-m test --forever"

* Fix "-m test --forever": replace _test_forever() with self._test_forever()
* Add unit test for --forever
* Add unit test for a failing test
* Fix also some pyflakes warnings in libregrtest

9 years agoAdd an early-out for deque_clear()
Raymond Hettinger [Wed, 30 Sep 2015 05:45:05 +0000 (22:45 -0700)]
Add an early-out for deque_clear()

9 years agoIssue #25220, libregrtest: more verbose output for -jN
Victor Stinner [Wed, 30 Sep 2015 01:05:43 +0000 (03:05 +0200)]
Issue #25220, libregrtest: more verbose output for -jN

When the -jN command line option is used, display tests running since at least
30 seconds every minute.

9 years agoIssue #25220, libregrtest: Cleanup
Victor Stinner [Wed, 30 Sep 2015 00:39:22 +0000 (02:39 +0200)]
Issue #25220, libregrtest: Cleanup

No need to support.verbose in Regrtest.run_tests(), it's always set in
runtest().

9 years agoIssue #25220, libregrtest: Pass directly ns to runtest()
Victor Stinner [Wed, 30 Sep 2015 00:32:11 +0000 (02:32 +0200)]
Issue #25220, libregrtest: Pass directly ns to runtest()

* Remove runtest_ns(): pass directly ns to runtest().
* Create also Regrtest.rerun_failed_tests() method.
* Inline again Regrtest.run_test(): it's no more justified to have a method

9 years agoIssue #25220, libregrtest: Set support.use_resources in setup_tests()
Victor Stinner [Wed, 30 Sep 2015 00:17:28 +0000 (02:17 +0200)]
Issue #25220, libregrtest: Set support.use_resources in setup_tests()

* Rename setup_python() to setup_tests()
* Remove use_resources parameter of runtest()

9 years agoIssue #25274: Workaround test_sys crash just to keep buildbots usable
Victor Stinner [Wed, 30 Sep 2015 00:02:49 +0000 (02:02 +0200)]
Issue #25274: Workaround test_sys crash just to keep buildbots usable

9 years agoIssue #25220, libregrtest: Call setup_python(ns) in the slaves
Victor Stinner [Tue, 29 Sep 2015 23:39:28 +0000 (01:39 +0200)]
Issue #25220, libregrtest: Call setup_python(ns) in the slaves

Slaves (child processes running tests for regrtest -jN) now inherit
--memlimit/-M, --threshold/-t and --nowindows/-n options.

* -M, -t and -n are now supported with -jN
* Factorize code to run tests.
* run_test_in_subprocess() now pass the whole "ns" namespace to the child
  process.

9 years agoIssue #25220, libregrtest: Add runtest_ns() function
Victor Stinner [Tue, 29 Sep 2015 23:32:39 +0000 (01:32 +0200)]
Issue #25220, libregrtest: Add runtest_ns() function

* Factorize code to run tests.
* run_test_in_subprocess() now pass the whole "ns" namespace to the child
  process.

9 years agoIssue #25220, libregrtest: Move setup_python() to a new submodule
Victor Stinner [Tue, 29 Sep 2015 23:13:53 +0000 (01:13 +0200)]
Issue #25220, libregrtest: Move setup_python() to a new submodule

9 years agoIssue #25220, libregrtest: Cleanup setup code
Victor Stinner [Tue, 29 Sep 2015 22:59:35 +0000 (00:59 +0200)]
Issue #25220, libregrtest: Cleanup setup code

9 years agoIssue #25220: Use print(flush=True) in libregrtest
Victor Stinner [Tue, 29 Sep 2015 22:48:27 +0000 (00:48 +0200)]
Issue #25220: Use print(flush=True) in libregrtest

9 years agoIssue #25220: Enhance regrtest -jN
Victor Stinner [Tue, 29 Sep 2015 22:33:29 +0000 (00:33 +0200)]
Issue #25220: Enhance regrtest -jN

Running the Python test suite with -jN now:

- Display the duration of tests which took longer than 30 seconds
- Display the tests currently running since at least 30 seconds
- Display the tests we are waiting for when the test suite is interrupted

Clenaup also run_test_in_subprocess() code.

9 years agoDon't strip refcount in libregrtest/runtest_mp.py
Victor Stinner [Tue, 29 Sep 2015 21:52:33 +0000 (23:52 +0200)]
Don't strip refcount in libregrtest/runtest_mp.py

Python doesn't display the refcount anymore by default. It only displays it
when -X showrefcount command line option is used, which is not the case here.
regrtest can be run with -X showrefcount, the option is not inherited by child
processes.

9 years agoIssue #25220, libregrtest: Remove unused import
Victor Stinner [Tue, 29 Sep 2015 21:50:19 +0000 (23:50 +0200)]
Issue #25220, libregrtest: Remove unused import