[3.8] bpo-36670, regrtest: Fix WindowsLoadTracker() for partial line (GH-16550) by vstinner · Pull Request #16559 · python/cpython

and others added 30 commits

September 10, 2019 00:31
…H-15761)

* bpo-351428: Updates documentation to reflect AsyncMock call_count after await.

* Adds skip and fixes warning.

* Removes extra >>>.

* Adds ... in front of await mock().
(cherry picked from commit b9f65f0)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
(cherry picked from commit 264e034)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Accumulate certificates in a set instead of doing a costly list contain
operation. A Windows cert store can easily contain over hundred
certificates. The old code would result in way over 5,000 comparison
operations

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 359143c)

Co-authored-by: dalgarno <32097481+dalgarno@users.noreply.github.com>
Azure runs macOS, so we don't need Travis to do it.
(cherry picked from commit e45b217)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
…Is [locks] (GH-13920)

This PR deprecate explicit loop parameters in all public asyncio APIs

This issues is split to be easier to review.

Third step: locks.py

https://bugs.python.org/issue36373
(cherry picked from commit 537877d)

Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
…Is [queue] (GH-13950)

This PR deprecate explicit loop parameters in all public asyncio APIs

This issues is split to be easier to review.

fourth step: queue.py

https://bugs.python.org/issue36373
(cherry picked from commit 9008be3)

Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
…r wrong type (GH-15838)

(cherry picked from commit 57ea335)

Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be>
Update the docs as patch can now return an AsyncMock if the patched
object is an async function.
(cherry picked from commit f5e7f39)

Co-authored-by: Mario Corchero <mcorcherojim@bloomberg.net>
(cherry picked from commit f1a297a)

Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
GH-11836)

(cherry picked from commit 734f120)

Co-authored-by: Bernt Røskar Brenna <bernt.brenna@gmail.com>
…configparser (GH-6137) (GH-15846)

Document how $ and % can be escaped in configparser.
(cherry picked from commit 9a94093)

Co-authored-by: Arun Persaud <arun@nubati.net>
feed_eof(), feed_data(), set_exception(), and set_transport() are prefixed with underscore now.

https://bugs.python.org/issue38066
(cherry picked from commit 12c122a)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
(cherry picked from commit a511c7a)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
As described in Doc/c-api/init.rst, PyEval_InitThreads() cannot be called
before Py_Initialize() function.
(cherry picked from commit 9e61066)

Co-authored-by: Kenta Murata <mrkn@users.noreply.github.com>
…2 toolset installed (GH-15849)

(cherry picked from commit cd82211)

Co-authored-by: Steve Dower <steve.dower@python.org>
(cherry picked from commit 182e1d1)

Co-authored-by: Matthias <xmatthias@outlook.com>
…GH-11314) (GH-15869)

* Improve doc on open's mode +

* Improve wording

* Address comment from Rémi
(cherry picked from commit c1d8c1c)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
) (GH-15875)

(cherry picked from commit 9121088)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
* Write a message when killing a worker process
* Put a timeout on the second popen.communicate() call
  (after killing the process)
* Put a timeout on popen.wait() call
* Catch popen.kill() and popen.wait() exceptions

(cherry picked from commit de2d9ee)
In text mode, the "size" parameter indicates the number of characters, not bytes.
(cherry picked from commit faff81c)

Co-authored-by: William Andrea <william.j.andrea@gmail.com>
…tests optional (GH-15851)

(cherry picked from commit 801f925)

Co-authored-by: Steve Dower <steve.dower@python.org>
(cherry picked from commit 0518451)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
(cherry picked from commit b6dafe5)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>