]> granicus.if.org Git - python/log
python
6 years agobpo-33821: Update idlelib subsection of What's New 3.7 (GH-7590)
Miss Islington (bot) [Sun, 10 Jun 2018 18:35:22 +0000 (11:35 -0700)]
bpo-33821: Update idlelib subsection of What's New 3.7 (GH-7590)

(cherry picked from commit 222f7f40339238b3d2c803849c75e682725449d7)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589)
Miss Islington (bot) [Sun, 10 Jun 2018 18:30:28 +0000 (11:30 -0700)]
bpo-33820: Update idlelib subsection of What's New 3.6 (GH-7589)

(cherry picked from commit e226eb71575ad22a6779b02941377665831cfff2)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agoRemove hyphens from phrase "picks up where it left off" (GH-7410)
Miss Islington (bot) [Sun, 10 Jun 2018 02:00:36 +0000 (19:00 -0700)]
Remove hyphens from phrase "picks up where it left off" (GH-7410)

(cherry picked from commit d689f976199d2e211a97d526b57cfa9871cc578d)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agoFix typo in object.__getnewargs__() documentation (GH-7554)
Miss Islington (bot) [Sun, 10 Jun 2018 01:01:36 +0000 (18:01 -0700)]
Fix typo in object.__getnewargs__() documentation (GH-7554)

(cherry picked from commit 0e0534c4024c181aa47a300142c59eeeee71db46)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33766: Document that end of file or string is a newline (GH-7383)
Miss Islington (bot) [Sun, 10 Jun 2018 00:05:49 +0000 (17:05 -0700)]
bpo-33766: Document that end of file or string is a newline (GH-7383)

(cherry picked from commit 0aa17ee6a76df0946d42e7657a501f1862065a22)

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
6 years agodoc: Fix typo in asyncio-eventloop.rst (GH-7345)
Miss Islington (bot) [Sat, 9 Jun 2018 23:30:16 +0000 (16:30 -0700)]
doc: Fix typo in asyncio-eventloop.rst (GH-7345)

This is a fixup to 19a44f63c738388ef3c8515348b4ffc061dfd627
(cherry picked from commit 7e0d882a98169e6d8d1507224b83ff0264c2afee)

Co-authored-by: MarcoFalke <falke.marco@gmail.com>
6 years agobpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511)
Michael Felt [Sat, 9 Jun 2018 21:59:02 +0000 (15:59 -0600)]
bpo-32493: Correct test for uuid_enc_be availability in configure.ac. (GH-7511)

6 years agobpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)
Miss Islington (bot) [Sat, 9 Jun 2018 16:33:24 +0000 (09:33 -0700)]
bpo-33718: regrtest: use "xxx then yyy" result if re-run (GH-7521)

If tests are re-run, use "xxx then yyy" result format (ex: "FAILURE
then SUCCESS") to show that some failing tests have been re-run.

Add also test_regrtest.test_rerun_fail() test.
(cherry picked from commit c45fc7673e23f911639d10d3771ffef7be870c7a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33409: Clarify PEP 538/540 relationship (GH-7534)
Miss Islington (bot) [Sat, 9 Jun 2018 07:13:53 +0000 (00:13 -0700)]
bpo-33409: Clarify PEP 538/540 relationship (GH-7534)

While locale coercion and UTF-8 mode turned out to
be complementary ideas rather than competing ones,
it isn't immediately obvious why it's useful to
have both, or how they interact at runtime.

This updates both the Python 3.7 What's New doc
and the PYTHONCOERCECLOCALE and PYTHONUTF8
documentation in an attempt to clarify that
relationship:

- in the respective What's New sections, add a closing paragraph
  explaining which problem each one solves, and pointing to the
  other PEP's section for the specific aspects it relies on the other
  PEP to solve
- use "locale-aware mode" as a more descriptive term for the
  default non-UTF-8 mode
- improve wording conistenccy between the PYTHONCOERCECLOCALE
  and PYTHONUTF8 docs when they cover the same thing (mostly
  related to legacy locale detection and setting the standard
  stream error handler)
- improve the description of the locale coercion trigger conditions
  (including pointing out that setting LC_ALL turns off locale coercion)
- port the full description of the UTF-8 mode behaviour changes
  from PEP 540 into the PYTHONUTF8 documentation
- be explicit that PYTHONIOENCODING still overrides the settings
  for the standard streams
- mention concrete examples of things that do and don't get their
  text encoding assumptions adjusted by the two text encoding
  assumption override techniques
(cherry picked from commit 1bcb8a636857e3383d65aaf196f93edb949f2e79)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
6 years agoDatetime test coverage (GH-7544) (GH-7551)
Miss Islington (bot) [Sat, 9 Jun 2018 03:11:23 +0000 (20:11 -0700)]
Datetime test coverage (GH-7544) (GH-7551)

* Added a test case for strftime("%z").

The added test checks a case with UTC offest expressed in an integer
number of seconds.

* Added a test comparing naive and aware datetimes.

Check that a greater than  comparison of a naive  datetime instance with
an aware one raises a TypeError.

* Test datetime in fold or in gap comparison both ways.
(cherry picked from commit 4c3e39f61c6a759aa1370497ea3597f3564f9da0)

Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
6 years agobpo-30805: Avoid race condition with debug logging (GH-7545)
Miss Islington (bot) [Fri, 8 Jun 2018 22:42:07 +0000 (15:42 -0700)]
bpo-30805: Avoid race condition with debug logging (GH-7545)

Supersedes https://github.com/python/cpython/pull/2490
(cherry picked from commit 12f482e0ae33021c04264294f33fa6baa9617cec)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33801: Remove non-ordered dict comment from plistlib doc (GH-7495) (GH-7546)
Miss Islington (bot) [Fri, 8 Jun 2018 21:57:43 +0000 (14:57 -0700)]
bpo-33801: Remove non-ordered dict comment from plistlib doc (GH-7495) (GH-7546)

(cherry picked from commit 1cbdb2208aa309cf288ee0b53f0ecd85279bb934)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigPars...
Miss Islington (bot) [Fri, 8 Jun 2018 19:26:07 +0000 (12:26 -0700)]
bpo-33800: Fix default argument for parameter dict_type of ConfigParser/RawConfigParser (GH-7494) (GH-7542)

(cherry picked from commit 3b0b90c8c3b8161f0ae9005b83b9b6449d4a8476)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years ago[3.7] Update version in '.github/PULL_REQUEST_TEMPLATE.md' (GH-7537)
Suriyaa ✌️️ [Fri, 8 Jun 2018 18:46:27 +0000 (20:46 +0200)]
[3.7] Update version in '.github/PULL_REQUEST_TEMPLATE.md' (GH-7537)

6 years agobpo-33799: Remove non-ordered dicts comments from FAQ (GH-7520)
Miss Islington (bot) [Fri, 8 Jun 2018 18:43:14 +0000 (11:43 -0700)]
bpo-33799: Remove non-ordered dicts comments from FAQ (GH-7520)

(cherry picked from commit 396ecb9c3e7fb150eace7bfc733d5b9d0263d697)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-33807: Add Python 3.7 buildbot link to '.github/CONTRIBUTING.rst' (GH-7532)
Miss Islington (bot) [Fri, 8 Jun 2018 16:05:06 +0000 (09:05 -0700)]
bpo-33807: Add Python 3.7 buildbot link to '.github/CONTRIBUTING.rst' (GH-7532)

(cherry picked from commit 9e6685ea7b749ee34466e71b22d99e5112d71a95)

Co-authored-by: Suriyaa ✌️️ <isc.suriyaa@gmail.com>
6 years agobpo-33736: Improve the documentation of asyncio stream APIs (GH-7326)
Miss Islington (bot) [Fri, 8 Jun 2018 15:54:31 +0000 (08:54 -0700)]
bpo-33736: Improve the documentation of asyncio stream APIs (GH-7326)

(cherry picked from commit c0d062f523b16331444ff910e4596ee5608c8170)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
6 years agobpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524)
Miss Islington (bot) [Fri, 8 Jun 2018 14:01:56 +0000 (07:01 -0700)]
bpo-33802: Do not interpolate in ConfigParser while reading defaults (GH-7524)

This solves a regression in logging config due to changes in BPO-23835.
(cherry picked from commit 214f18e49feb6a9d6c05aa09a4bb304905e81334)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
6 years agobpo-33798: Update csv document about dict order (GH-7490)
Miss Islington (bot) [Fri, 8 Jun 2018 13:33:32 +0000 (06:33 -0700)]
bpo-33798: Update csv document about dict order (GH-7490)

(cherry picked from commit 6860629d87d0f6728ff7430453d4900b695adf7b)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agobpo-11874: fix assertion failure in argparse metavar handling (GH-1826)
Miss Islington (bot) [Fri, 8 Jun 2018 11:33:50 +0000 (04:33 -0700)]
bpo-11874: fix assertion failure in argparse metavar handling (GH-1826)

- bugfix and test for fragile metavar handling in argparse (see
  bpo-24089, bpo-14046, bpo-25058, bpo-11874)
- also fixes some incorrect tests that did not make 1-element tuples correctly
(cherry picked from commit 66f02aa32f1e4adb9f24cf186f8c495399d5ce9b)

Co-authored-by: wim glenn <wim.glenn@gmail.com>
6 years agobpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)
Miss Islington (bot) [Fri, 8 Jun 2018 10:22:40 +0000 (03:22 -0700)]
bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)

(cherry picked from commit 9ef1b0690b90c526798b6b3125b0fa7ae98319a2)

Co-authored-by: Mayank Singhal <17mayank.singhal@gmail.com>
6 years agobpo-33694: Fix typo in helper function name (GH-7522)
Miss Islington (bot) [Fri, 8 Jun 2018 08:48:50 +0000 (01:48 -0700)]
bpo-33694: Fix typo in helper function name (GH-7522)

_feed_data_to_bufferred_proto() renamed to
_feed_data_to_buffered_proto() ("bufferred" => "buffered").

Typo spotted by Nathaniel J. Smith.
(cherry picked from commit ff6c07729211fb98431a2793e074d07a21e0650a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agoUpdate idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)
Miss Islington (bot) [Fri, 8 Jun 2018 06:47:12 +0000 (23:47 -0700)]
Update idlelib/NEWS.txt to 2018 Jun 8 am. (GH-7517)

(cherry picked from commit b1f690294d9bf948d148df3ca0d20ca462d902b3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411)
Miss Islington (bot) [Fri, 8 Jun 2018 05:50:36 +0000 (22:50 -0700)]
bpo-33768: IDLE: Clicking on code context line moves it to top of editor (GH-7411)

(cherry picked from commit 041272b657867f5bec925b19aabf23944125d49b)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-33791: Update README for macOS users (GH-7471)
Miss Islington (bot) [Fri, 8 Jun 2018 02:51:28 +0000 (19:51 -0700)]
bpo-33791: Update README for macOS users (GH-7471)

(cherry picked from commit ee994d7443a7e2809a5d49bd3679fc9c451a411b)

Co-authored-by: atg7000 <38963069+atg7000@users.noreply.github.com>
6 years agobpo-33792: Add selector and proactor windows policies (GH-7487)
Miss Islington (bot) [Fri, 8 Jun 2018 01:31:50 +0000 (18:31 -0700)]
bpo-33792: Add selector and proactor windows policies (GH-7487)

(cherry picked from commit 8f4042964d5b0ddf5cdf87862db962ba64e3f64a)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33803: Fix a crash in hamt.c (GH-7504) (GH-7505)
Miss Islington (bot) [Fri, 8 Jun 2018 00:44:09 +0000 (17:44 -0700)]
bpo-33803: Fix a crash in hamt.c (GH-7504) (GH-7505)

(cherry picked from commit 378c53cc3187dba57c7560ccc2557f516c8a7bc8)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33609: small wording fixes to dict ordering docs (#7497)
Miss Islington (bot) [Fri, 8 Jun 2018 00:38:22 +0000 (17:38 -0700)]
bpo-33609: small wording fixes to dict ordering docs (#7497)

A few wording improvements to dict ordering documentation.
(cherry picked from commit d3ed67d14ed401dfe2b5d07b6941adc3ecacb268)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
6 years agobpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500)
Miss Islington (bot) [Thu, 7 Jun 2018 23:30:19 +0000 (16:30 -0700)]
bpo-33642 and bpo-33679: Revise and condense blurbs (GH-7500)

(cherry picked from commit bed523ba03c4525c9c79a6df700284b6c43024b3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
6 years agobpo-33694: Fix race condition in asyncio proactor (GH-7498) (GH-7499)
Miss Islington (bot) [Thu, 7 Jun 2018 22:49:34 +0000 (15:49 -0700)]
bpo-33694: Fix race condition in asyncio proactor (GH-7498) (GH-7499)

The cancellation of an overlapped WSARecv() has a race condition
which causes data loss because of the current implementation of
proactor in asyncio.

No longer cancel overlapped WSARecv() in _ProactorReadPipeTransport
to work around the race condition.

Remove the optimized recv_into() implementation to get simple
implementation of pause_reading() using the single _pending_data
attribute.

Move _feed_data_to_bufferred_proto() to protocols.py.

Remove set_protocol() method which became useless.
(cherry picked from commit 79790bc35fe722a49977b52647f9b5fe1deda2b7)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33796: Ignore ClassVar for dataclasses.replace(). (GH-7488)
Miss Islington (bot) [Thu, 7 Jun 2018 20:15:23 +0000 (13:15 -0700)]
bpo-33796: Ignore ClassVar for dataclasses.replace(). (GH-7488)

(cherry picked from commit e7adf2ba41832404100313f9ac9d9f7fabedc1fd)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
6 years agoImprove the subprocess restore_signals=True test. (GH-7414) (GH-7437)
Miss Islington (bot) [Thu, 7 Jun 2018 17:31:41 +0000 (10:31 -0700)]
Improve the subprocess restore_signals=True test. (GH-7414) (GH-7437)

It wasn't testing functionality.  Now it is (on Linux anyways).
(cherry picked from commit 5f3d04fa4e9b3c3b0e4807f8516de9365bfed467)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 years agoupdate 3.7 whatsnew entry about Unicode version (GH-7480)
Miss Islington (bot) [Thu, 7 Jun 2018 14:50:33 +0000 (07:50 -0700)]
update 3.7 whatsnew entry about Unicode version (GH-7480)

Followup to 4705ea38c900f068fd262aca02943896d1123544 and bpo-33778.
(cherry picked from commit 34b734699b19d826f861b604dd77e82beed95f17)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years ago[3.7] bpo-33789: Backport test_asyncio fixes from master (GH-7478)
Victor Stinner [Thu, 7 Jun 2018 14:19:00 +0000 (16:19 +0200)]
[3.7] bpo-33789: Backport test_asyncio fixes from master (GH-7478)

* bpo-33789: test_asyncio: Fix ResourceWarning (GH-7460)

* Close sockets and streams to fix ResourceWarning warnings
* Catch also OSError to hide a traceback on an expected handshake
  error

(cherry picked from commit 0eba7c39132614a5730cda6b340e18dfb2d30d14)

* bpo-33789, test_asyncio: Hide PendingDeprecationWarning (GH-7461)

Hide PendingDeprecationWarning in test__register_task_3().

(cherry picked from commit 7ed61e9431ee2c191aeeeb26f86a71bb90ab99fd)

* bpo-32676, test_asyncio: Fix warning in test_error_in_call_soon() (GH-7462)

Fix "<CoroWrapper ...> was never yielded from" warning in
PyTask_PyFuture_Tests.test_error_in_call_soon() of
test_asyncio.test_tasks.

Close manually the coroutine on error.

(cherry picked from commit 9f04f0df6fdb27190690bda949d213893d14e807)

6 years agobpo-17909: Document that json.load can accept a binary IO (GH-7366)
Miss Islington (bot) [Thu, 7 Jun 2018 10:17:15 +0000 (03:17 -0700)]
bpo-17909: Document that json.load can accept a binary IO (GH-7366)

(cherry picked from commit bb6366bd7570ff3b74bc66095540bea78f31504e)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
6 years agoupdate to Unicode 11.0.0 (closes bpo-33778) (GH-7439) (GH-7470)
Miss Islington (bot) [Thu, 7 Jun 2018 07:36:22 +0000 (00:36 -0700)]
update to Unicode 11.0.0 (closes bpo-33778) (GH-7439) (GH-7470)

Also, standardize indentation of generated tables.
(cherry picked from commit 7c69c1c0fba8c1c8ff3969bce4c1135736a4cc58)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385)
Miss Islington (bot) [Thu, 7 Jun 2018 06:21:43 +0000 (23:21 -0700)]
bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385)

(cherry picked from commit fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-28240: timeit: Update repeat() doc (GH-7419) (GH-7457)
Miss Islington (bot) [Wed, 6 Jun 2018 17:05:46 +0000 (10:05 -0700)]
bpo-28240: timeit: Update repeat() doc (GH-7419) (GH-7457)

Document that the default value of repeat changed from 3 to 5 in
Python 3.7.
(cherry picked from commit 3ef769fcd378a7f1cda19c0dfec2e79613d79e48)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)
Miss Islington (bot) [Wed, 6 Jun 2018 15:57:20 +0000 (08:57 -0700)]
bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)

Substract one because listdir() opens internally a file
descriptor to list the content of the /proc/self/fd/ directory.

Add test_support.test_fd_count().

Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure
that the report mode is always restored on failure.
(cherry picked from commit 492d6424a7ca907c8ec1df21e51062e8f3d88e32)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33781: audioop: enhance rounding double as int (GH-7447)
Miss Islington (bot) [Wed, 6 Jun 2018 14:33:05 +0000 (07:33 -0700)]
bpo-33781: audioop: enhance rounding double as int (GH-7447)

Move the floor() call into fbound() to call floor() on a double
rather than an int. The change should enhance the rounding.

Document also (int)double rounding mode.
(cherry picked from commit 45e4efba7fa2abe61d25e4f8b5bf482e19ff1280)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agoremove hg support from patchcheck (GH-7440)
Miss Islington (bot) [Wed, 6 Jun 2018 05:56:31 +0000 (22:56 -0700)]
remove hg support from patchcheck (GH-7440)

(cherry picked from commit b8c0845fee9277b1106ceecbf7592f8806c73ec8)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
6 years agobpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)
Miss Islington (bot) [Wed, 6 Jun 2018 00:12:06 +0000 (17:12 -0700)]
bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)

(cherry picked from commit e33648484775fa533fc8f1e5cc45f60061d29d54)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-33755: Fix importlib.resources isolation tests (GH-7412) (#7434)
Miss Islington (bot) [Tue, 5 Jun 2018 19:11:40 +0000 (12:11 -0700)]
bpo-33755: Fix importlib.resources isolation tests (GH-7412) (#7434)

(cherry picked from commit ac1ee1badade69d5cd6d8b9112281f121183e7c0)

Co-authored-by: Barry Warsaw <barry@python.org>
6 years agobpo-33751: Fix test_file. (GH-7378)
Miss Islington (bot) [Tue, 5 Jun 2018 17:50:53 +0000 (10:50 -0700)]
bpo-33751: Fix test_file. (GH-7378)

testModeStrings and testTruncateOnWindows were depended on
a file leaked in other tests.

Also improve cleaning up after tests.
(cherry picked from commit c2745d2d05546d76f655ab450eb23d1af39e0b1c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403) (GH...
Miss Islington (bot) [Tue, 5 Jun 2018 14:18:20 +0000 (07:18 -0700)]
bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403) (GH-7428)

In addition to that, mark SSLTransport as "closed" in its "abort()" method to prevent bogus warnings.
(cherry picked from commit 415bc46a78e785f357c8960ae70f18a6b6cccbb6)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33752: Fix a file leak in test_dbm. (GH-7376)
Miss Islington (bot) [Tue, 5 Jun 2018 13:50:56 +0000 (06:50 -0700)]
bpo-33752: Fix a file leak in test_dbm. (GH-7376)

With addCleanup() f.close() was executed after tearDown().
(cherry picked from commit 6592d7fe11477f8f974d2d4a85c3382a1ad05217)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
Miss Islington (bot) [Tue, 5 Jun 2018 13:21:04 +0000 (06:21 -0700)]
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)

Raise TypeError instead of SystemError for unsupported operations.
(cherry picked from commit e9e397605789b2a67b67558fbbe756b7b88934f5)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agobpo-32392: Document env keyword argument of subprocess.run() (GH-7289)
Miss Islington (bot) [Tue, 5 Jun 2018 12:03:02 +0000 (05:03 -0700)]
bpo-32392: Document env keyword argument of subprocess.run() (GH-7289)

(cherry picked from commit af1ec97a6d1dde68b2dc0ee9b78965eb219061a8)

Co-authored-by: Tobias Kunze <r@rixx.de>
6 years agobpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)
Miss Islington (bot) [Tue, 5 Jun 2018 10:13:28 +0000 (03:13 -0700)]
bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)

(cherry picked from commit 5f48e2644dcfb47f0bbc0fcdc2b103a19bdec288)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093)
Miss Islington (bot) [Mon, 4 Jun 2018 22:25:12 +0000 (15:25 -0700)]
bpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093)

(cherry picked from commit f822549653d8d09bffff5b7dcddfdf12679a787c)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)
Miss Islington (bot) [Mon, 4 Jun 2018 20:41:49 +0000 (13:41 -0700)]
bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)

(cherry picked from commit 2a4a62ba4ae770bbc7b7fdec0760031c83fe1f7b)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
6 years agobpo-31849: Fix warning in pyhash.c (GH-6799)
Miss Islington (bot) [Mon, 4 Jun 2018 17:31:07 +0000 (10:31 -0700)]
bpo-31849: Fix warning in pyhash.c (GH-6799)

(cherry picked from commit a8eb58546b37a7cd5f332f019bb07388f5212c2d)

Co-authored-by: A. Jesse Jiryu Davis <jesse@emptysquare.net>
6 years agobpo-27902: Add compatibility note to Profile docs (GH-7295)
Miss Islington (bot) [Mon, 4 Jun 2018 17:25:37 +0000 (10:25 -0700)]
bpo-27902: Add compatibility note to Profile docs (GH-7295)

(cherry picked from commit f7745e1dcb8e8473cc86112a0213b3f244a07230)

Co-authored-by: Tobias Kunze <r@rixx.de>
6 years agobpo-33509: Fix test_warnings for python3 -Werror (GH-7365)
Miss Islington (bot) [Mon, 4 Jun 2018 17:23:41 +0000 (10:23 -0700)]
bpo-33509: Fix test_warnings for python3 -Werror (GH-7365)

Fix test_warnings.test_module_globals() when python3 is run with
-Werror.
(cherry picked from commit e292b75e3ecdc6bbe81cda09de836dc9e27ab9e6)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
Miss Islington (bot) [Mon, 4 Jun 2018 17:17:28 +0000 (10:17 -0700)]
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)

The bytes parameter uses big endian.
(cherry picked from commit b75ec0856771b51684b08c4e5068fbfad25c5e83)

Co-authored-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
6 years agobpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)
Miss Islington (bot) [Mon, 4 Jun 2018 16:33:23 +0000 (09:33 -0700)]
bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)

(cherry picked from commit b609e687a076d77bdd687f5e4def85e29a044bfc)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-33734: asyncio/ssl: a bunch of bugfixes (GH-7321) (GH-7396)
Miss Islington (bot) [Mon, 4 Jun 2018 16:05:46 +0000 (09:05 -0700)]
bpo-33734: asyncio/ssl: a bunch of bugfixes (GH-7321) (GH-7396)

* Fix AttributeError (not all SSL exceptions have 'errno' attribute)

* Increase default handshake timeout from 10 to 60 seconds
* Make sure start_tls can be cancelled correctly
* Make sure any error in SSLProtocol gets propagated (instead of just being logged)
(cherry picked from commit 9602643120a509858d0bee4215d7f150e6125468)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33664: Scroll IDLE editor text by lines (GH-7351)
Miss Islington (bot) [Mon, 4 Jun 2018 16:05:24 +0000 (09:05 -0700)]
bpo-33664: Scroll IDLE editor text by lines (GH-7351)

Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.
(cherry picked from commit d49dbd9acc6db544ca6cb2445fe17eb0c3be4bba)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agoRegenerate configure after changing configure.ac in GH-6987. (GH-7344) (GH-7382)
Miss Islington (bot) [Mon, 4 Jun 2018 05:41:12 +0000 (22:41 -0700)]
Regenerate configure after changing configure.ac in GH-6987. (GH-7344) (GH-7382)

(cherry picked from commit 88cc339ee377f3acd4c6936be8edb6be4fa48657)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7371)
Miss Islington (bot) [Mon, 4 Jun 2018 03:16:48 +0000 (20:16 -0700)]
bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7371)

It depended on a global variable set by other tests.
(cherry picked from commit 7cfd8c6a1b53a7dbdea14b6f414f2629dcd130a2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33760: Fix file leaks in test_io. (GH-7361) (GH-7370)
Miss Islington (bot) [Mon, 4 Jun 2018 03:15:10 +0000 (20:15 -0700)]
bpo-33760: Fix file leaks in test_io. (GH-7361) (GH-7370)

(cherry picked from commit e36837cb71032ccfa713e75623b314f091dc22bb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33764: Appveyor fixes (GH-7364) (GH-7369)
Miss Islington (bot) [Mon, 4 Jun 2018 01:16:59 +0000 (18:16 -0700)]
bpo-33764: Appveyor fixes (GH-7364) (GH-7369)

* Prevent spurious message if taking a shortcut
* Fix YAML style
* Disable largefile tests
(cherry picked from commit 47a6c79f0986ce9a84d0efc3c565b28255042911)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
6 years agobpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)
Miss Islington (bot) [Sun, 3 Jun 2018 19:02:20 +0000 (12:02 -0700)]
bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)

(cherry picked from commit 13f51d9eec569e08475390e2a8f49f4afed1ea06)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33750: Reset thread-local context precision in test_round(). (GH-7355) (#7357)
Miss Islington (bot) [Sun, 3 Jun 2018 17:36:34 +0000 (10:36 -0700)]
bpo-33750: Reset thread-local context precision in test_round(). (GH-7355) (#7357)

(cherry picked from commit e95dfc5006d19e59c7871faa9973356844ddb3ae)

Co-authored-by: Stefan Krah <skrah@bytereef.org>
6 years agobpo-33744: Fix test_uu. (GH-7350) (GH-7352)
Miss Islington (bot) [Sun, 3 Jun 2018 15:23:53 +0000 (08:23 -0700)]
bpo-33744: Fix test_uu. (GH-7350) (GH-7352)

Separate tests leaked files or were depended on files leaked in other tests.
(cherry picked from commit 027f95c736457f12c5713d9cf5b95ac335e583df)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
Miss Islington (bot) [Sat, 2 Jun 2018 15:40:00 +0000 (08:40 -0700)]
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)

`writerows()` takes an iterable.
(cherry picked from commit a801cf164be7c62b6a6dba47ff91d6c3edb67729)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
6 years agoFix typo in datamodel.rst (GH-6964)
Miss Islington (bot) [Sat, 2 Jun 2018 14:53:30 +0000 (07:53 -0700)]
Fix typo in datamodel.rst (GH-6964)

This is a simple grammatical fix correcting "...object whose `__self__` attributes is ..." to "...object whose `__self__` attribute is ...".
(cherry picked from commit 00818c8ffd657f9ec727e366bfffd9c2135fa5ab)

Co-authored-by: Zach Mitchell <zmitchell@users.noreply.github.com>
6 years agoDocs: fix some wrong words (GH-6987)
Miss Islington (bot) [Sat, 2 Jun 2018 14:36:19 +0000 (07:36 -0700)]
Docs: fix some wrong words (GH-6987)

Fix typos in code comments: bdb.py and configure.ac.
(cherry picked from commit b5c246f833d95991fed728c3845176dd661cd5ea)

Co-authored-by: Eitan Adler <grimreaper@users.noreply.github.com>
6 years agobpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)
Miss Islington (bot) [Sat, 2 Jun 2018 02:16:04 +0000 (19:16 -0700)]
bpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)

The difference from before is that the settings are now on the
Highlights tab instead of the Extensions tab and only change one theme
at a time instead of all themes. The default for light themes is black
on light gray, as before. The default for the IDLE Dark theme is white
on dark gray, which better fits the dark theme.

When one starts IDLE from a console and loads a custom theme without
definitions for 'context', one will see a warning message on the console.
To stop the warning, go to Options => Configure IDLE => Highlights,
select the custom theme if not selected already, select 'Code Context',
and select foreground and background colors.
(cherry picked from commit de6516264e793be991f692fdd892707afb9104a7)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)
Miss Islington (bot) [Fri, 1 Jun 2018 23:45:54 +0000 (16:45 -0700)]
bpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)

Instead of displaying a fixed number of lines, some blank, Code Context
now displays the variable number of actual context lines.  When there
are no context lines, it shows a single blank line to indicate that the
feature is turned on.

The Code Context configuration option is changed from 'numlines'
(default 3) to 'maxlines' (default 15) to avoid possible interference
between user settings for the old and new versions of Code Context.
(cherry picked from commit 29996a1c4e8bd6dde6adce2b44d11a0982a47a3a)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
6 years agobpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296) ...
Miss Islington (bot) [Fri, 1 Jun 2018 17:57:12 +0000 (10:57 -0700)]
bpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296) (#7300)

(cherry picked from commit c0d341d49b3ffc8b0037e501c246271be9c69f55)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
6 years agobpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation...
Miss Islington (bot) [Fri, 1 Jun 2018 17:54:30 +0000 (10:54 -0700)]
bpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation. (GH-7297) (GH-7302)

(cherry picked from commit 23cee80cfade1a9019c52b3a17d8e5c1b5db17e2)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
6 years agobpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319)
Miss Islington (bot) [Fri, 1 Jun 2018 15:21:21 +0000 (08:21 -0700)]
bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319)

Use also support.SOCK_MAX_SIZE, not only support.PIPE_MAX_SIZE, to
get the size for a blocking send into a multiprocessing pipe.
(cherry picked from commit 252f6abe0a9430f4ae7588c0cb50a6ff141bebe3)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7309)
Victor Stinner [Fri, 1 Jun 2018 12:07:50 +0000 (14:07 +0200)]
bpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7309)

socketserver.ThreadingMixIn no longer tracks active threads if
block_on_close is false.

6 years agobpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7306)
Miss Islington (bot) [Fri, 1 Jun 2018 10:50:24 +0000 (03:50 -0700)]
bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7306)

(cherry picked from commit e905c84494526363086f66a979e317e155bf9536)

Co-authored-by: pkerling <pkerling@casix.org>
6 years agobpo-33718: regrtest: update from master (GH-7305)
Victor Stinner [Fri, 1 Jun 2018 10:29:39 +0000 (12:29 +0200)]
bpo-33718: regrtest: update from master (GH-7305)

6 years agobpo-33692: Update pythoninfo from master (GH-7298)
Victor Stinner [Fri, 1 Jun 2018 10:10:07 +0000 (12:10 +0200)]
bpo-33692: Update pythoninfo from master (GH-7298)

* bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293)
* bpo-33717: pythoninfo: add CC --version (GH-7290)

6 years agobpo-33706: Fix pymain_parse_cmdline_impl() (GH-7283)
Miss Islington (bot) [Thu, 31 May 2018 13:43:21 +0000 (06:43 -0700)]
bpo-33706: Fix pymain_parse_cmdline_impl() (GH-7283)

Fix a crash in Python initialization when parsing the command line
options.

Fix memcpy() size parameter: previously, we read one wchar_t after
the end of _PyOS_optarg. Moreover, don't copy the trailingg NUL
character: we write it manually anyway.

Thanks Christoph Gohlke for the bug report and the fix!
(cherry picked from commit 58d1683255abb0df4fc70960da6121aeaa41e1d1)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agobpo-32911: Update the historical note about the magic number. (GH-7272)
Serhiy Storchaka [Thu, 31 May 2018 06:12:15 +0000 (09:12 +0300)]
bpo-32911: Update the historical note about the magic number. (GH-7272)

6 years agobpo-33641: Convert RFC references into links. (GH-7103)
Miss Islington (bot) [Thu, 31 May 2018 05:33:23 +0000 (22:33 -0700)]
bpo-33641: Convert RFC references into links. (GH-7103)

85% of them are already links.
(cherry picked from commit 0a36ac1a09587735237c5978ebd046313922869c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agobpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
Miss Islington (bot) [Thu, 31 May 2018 05:31:21 +0000 (22:31 -0700)]
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)

(cherry picked from commit a5c42284e69fb309bdd17ee8c1c120d1be383012)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
6 years agoFix "ditribution" typo in NEWS entry. (GH-7275)
Ned Deily [Thu, 31 May 2018 05:19:58 +0000 (01:19 -0400)]
Fix "ditribution" typo in NEWS entry. (GH-7275)

6 years agobpo-33532: Fix multiprocessing test_ignore() (GH-7262)
Miss Islington (bot) [Thu, 31 May 2018 03:28:04 +0000 (20:28 -0700)]
bpo-33532: Fix multiprocessing test_ignore() (GH-7262)

Fix test_ignore() of multiprocessing tests like
test_multiprocessing_forkserver: use support.PIPE_MAX_SIZE to make
sure that send_bytes() blocks.
(cherry picked from commit 5d6c7ed5e340b2311a15f34e968d4bef09c71922)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
6 years agoBump to 3.7.0b5+
Ned Deily [Thu, 31 May 2018 00:53:43 +0000 (20:53 -0400)]
Bump to 3.7.0b5+

6 years ago3.7.0b5 v3.7.0b5
Ned Deily [Wed, 30 May 2018 23:50:49 +0000 (19:50 -0400)]
3.7.0b5

6 years agobpo-31368: Enhance os.preadv() documentation (GH-7254)
Miss Islington (bot) [Wed, 30 May 2018 23:22:13 +0000 (16:22 -0700)]
bpo-31368: Enhance os.preadv() documentation (GH-7254)

(cherry picked from commit 02e2a085dc1740b1cbf4ba2ed77335c84ce8a367)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
6 years ago3.6 what's new: fix a reference to PEP 528 (GH-7113) (#7256)
Miss Islington (bot) [Wed, 30 May 2018 23:09:00 +0000 (16:09 -0700)]
3.6 what's new: fix a reference to PEP 528 (GH-7113) (#7256)

(cherry picked from commit 495e567a2b3bbe3b99f0c253edf12997a9ff4ee1)

Co-authored-by: Dmitry Shachnev <mitya57@users.noreply.github.com>
6 years agobpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)
Miss Islington (bot) [Wed, 30 May 2018 17:32:33 +0000 (10:32 -0700)]
bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)

(cherry picked from commit 05f1c8902c78dce66aed067444e2b973221bae2b)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
6 years agoImprove ensurepip's --help (GH-4686) (GH-7238)
Miss Islington (bot) [Wed, 30 May 2018 08:34:32 +0000 (01:34 -0700)]
Improve ensurepip's --help (GH-4686) (GH-7238)

* Add a space to ensurepip's --altinstall option
* Add periods to the arguments of ensurepip that didn't have it

This makes --help for all optional arguments consistent and also makes it
consistent with pip --help.
(cherry picked from commit e9537ad6a128924dd610bea2268065500c174181)

Co-authored-by: Wieland Hoffmann <mineo@users.noreply.github.com>
6 years ago[3.7] bpo-23859: Document that asyncio.wait() does not cancel its futures (GH-7217...
Miss Islington (bot) [Wed, 30 May 2018 01:26:22 +0000 (18:26 -0700)]
[3.7] bpo-23859: Document that asyncio.wait() does not cancel its futures (GH-7217) (#7227)

* bpo-23859: Document that asyncio.wait() does not cancel its futures (GH-7217)

Unlike `asyncio.wait_for()`, `asyncio.wait()` does not cancel the passed
futures when a timeout accurs.
(cherry picked from commit f9aeca2085464838f04bf13f816a1f861d43541f)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
* Update asyncio-task.rst

6 years agoRevert "bpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)" (GH-7233)
Yury Selivanov [Wed, 30 May 2018 00:56:33 +0000 (20:56 -0400)]
Revert "bpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)" (GH-7233)

This reverts commit 2a7eb0b531656f4a77d85078e6e009e4b3639ef9.

6 years agobpo-32684: Fix nits in tests (GH-7225) (#7231)
Miss Islington (bot) [Wed, 30 May 2018 00:40:54 +0000 (17:40 -0700)]
bpo-32684: Fix nits in tests (GH-7225) (#7231)

(cherry picked from commit 6f75bae74866b6acf638e3aa610d830d55b7e314)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years ago[3.7] bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH...
Julien Palard [Wed, 30 May 2018 00:24:17 +0000 (02:24 +0200)]
[3.7] bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195) (GH-7219)

* [3.7] bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195).
(cherry picked from commit 1cee216cf383eade641aed22f4ec7d4cb565ecff)

* Fix whatsnew entry about ThreadedHTTPServer. (GH-7220)
(cherry picked from commit a34e424bdbc62b4d83593af1c0d459d8aaac90f3)

6 years agobpo-32751: Wait for task cancellation in asyncio.wait_for() (GH-7216)
Miss Islington (bot) [Tue, 29 May 2018 22:37:06 +0000 (15:37 -0700)]
bpo-32751: Wait for task cancellation in asyncio.wait_for() (GH-7216)

Currently, asyncio.wait_for(fut), upon reaching the timeout deadline,
cancels the future and returns immediately.  This is problematic for
when *fut* is a Task, because it will be left running for an arbitrary
amount of time.  This behavior is iself surprising and may lead to
related bugs such as the one described in bpo-33638:

    condition = asyncio.Condition()
    async with condition:
        await asyncio.wait_for(condition.wait(), timeout=0.5)

Currently, instead of raising a TimeoutError, the above code will fail
with `RuntimeError: cannot wait on un-acquired lock`, because
`__aexit__` is reached _before_ `condition.wait()` finishes its
cancellation and re-acquires the condition lock.

To resolve this, make `wait_for` await for the task cancellation.
The tradeoff here is that the `timeout` promise may be broken if the
task decides to handle its cancellation in a slow way.  This represents
a behavior change and should probably not be back-patched to 3.6 and
earlier.
(cherry picked from commit e2b340ab4196e1beb902327f503574b5d7369185)

Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
6 years agobpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209...
Miss Islington (bot) [Tue, 29 May 2018 22:29:12 +0000 (15:29 -0700)]
bpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209) (#7222)

(cherry picked from commit 863b6749093a86810c4077112a857363410cc221)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)
Miss Islington (bot) [Tue, 29 May 2018 21:09:17 +0000 (14:09 -0700)]
bpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)

Original patch by Dan O'Reilly.
(cherry picked from commit 5d97b7bcc19496617bf8c448d2f149cc28c73bc7)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-30935: update get_event_loop docs (GH-2731)
Miss Islington (bot) [Tue, 29 May 2018 19:28:57 +0000 (12:28 -0700)]
bpo-30935: update get_event_loop docs (GH-2731)

(cherry picked from commit e55de2d77f10d524be0b426e587fbc820f76de71)

Co-authored-by: Mandeep Singh <daxlab@users.noreply.github.com>
6 years agoAttempt to fix test_stdin_broken_pipe on Travis (GH-7210) (#7211)
Miss Islington (bot) [Tue, 29 May 2018 18:32:07 +0000 (11:32 -0700)]
Attempt to fix test_stdin_broken_pipe on Travis (GH-7210) (#7211)

(cherry picked from commit 4fadf0c639476fa50a40ec6f119f98c01e56ad95)

Co-authored-by: Yury Selivanov <yury@magic.io>
6 years agobpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) (GH-7204)
Miss Islington (bot) [Tue, 29 May 2018 15:43:54 +0000 (08:43 -0700)]
bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636) (GH-7204)

(cherry picked from commit a9cab433bbf02f3a1de59d14dc8f583181ffe2d5)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
6 years agobpo-33353: test_asyncio use set_write_buffer_limits() (GH-7200)
Miss Islington (bot) [Tue, 29 May 2018 14:21:46 +0000 (07:21 -0700)]
bpo-33353: test_asyncio use set_write_buffer_limits() (GH-7200)

Use transport.set_write_buffer_limits() in sendfile tests of
test_asyncio to make sure that the protocol is paused after sending
4 KiB. Previously,
test_sendfile_fallback_close_peer_in_the_middle_of_receiving() failed
on FreeBSD if the DATA was smaller than the default limit of 64 KiB.
(cherry picked from commit 9551f7719213243fd96c4f284079243773c26b3c)

Co-authored-by: Victor Stinner <vstinner@redhat.com>