]> granicus.if.org Git - python/log
python
6 years agoImprove the subprocess restore_signals=True test. (GH-7414)
Gregory P. Smith [Tue, 5 Jun 2018 19:00:57 +0000 (12:00 -0700)]
Improve the subprocess restore_signals=True test. (GH-7414)

It wasn't testing functionality.  Now it is (on Linux anyways).

6 years agobpo-12486: Document tokenize.generate_tokens() as public API (#6957)
Thomas Kluyver [Tue, 5 Jun 2018 17:26:39 +0000 (19:26 +0200)]
bpo-12486: Document tokenize.generate_tokens() as public API (#6957)

* Document tokenize.generate_tokens()

* Add news file

* Add test for generate_tokens

* Document behaviour around ENCODING token

* Add generate_tokens to __all__

6 years agobpo-33751: Fix test_file. (GH-7378)
Serhiy Storchaka [Tue, 5 Jun 2018 16:55:41 +0000 (19:55 +0300)]
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.

6 years agobpo-33755: Fix importlib.resources isolation tests (#7412)
Barry Warsaw [Tue, 5 Jun 2018 16:40:45 +0000 (09:40 -0700)]
bpo-33755: Fix importlib.resources isolation tests (#7412)

6 years agobpo-33165: Added stacklevel parameter to logging APIs. (GH-7424)
Vinay Sajip [Tue, 5 Jun 2018 16:24:18 +0000 (17:24 +0100)]
bpo-33165: Added stacklevel parameter to logging APIs. (GH-7424)

6 years agobpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)
Mayank Singhal [Tue, 5 Jun 2018 14:14:37 +0000 (19:44 +0530)]
bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346)

6 years agobpo-33752: Fix a file leak in test_dbm. (GH-7376)
Serhiy Storchaka [Tue, 5 Jun 2018 13:03:00 +0000 (16:03 +0300)]
bpo-33752: Fix a file leak in test_dbm. (GH-7376)

With addCleanup() f.close() was executed after tearDown().

6 years agobpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403)
Yury Selivanov [Tue, 5 Jun 2018 12:59:58 +0000 (08:59 -0400)]
bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403)

In addition to that, mark SSLTransport as "closed" in its "abort()" method to prevent bogus warnings.

6 years agobpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)
Zackery Spytz [Tue, 5 Jun 2018 12:59:41 +0000 (06:59 -0600)]
bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381)

Raise TypeError instead of SystemError for unsupported operations.

6 years agobpo-32392: Document env keyword argument of subprocess.run() (GH-7289)
Tobias Kunze [Tue, 5 Jun 2018 11:41:42 +0000 (13:41 +0200)]
bpo-32392: Document env keyword argument of subprocess.run() (GH-7289)

6 years agobpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)
INADA Naoki [Tue, 5 Jun 2018 11:40:53 +0000 (20:40 +0900)]
bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395)

6 years agobpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)
Serhiy Storchaka [Tue, 5 Jun 2018 09:08:36 +0000 (12:08 +0300)]
bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377)

6 years agobpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093)
INADA Naoki [Mon, 4 Jun 2018 22:09:22 +0000 (07:09 +0900)]
bpo-33609: Document dict insertion order guarantee as of 3.7 (GH-7093)

6 years agobpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)
Steve Dower [Mon, 4 Jun 2018 20:25:00 +0000 (13:25 -0700)]
bpo-33720: Reduces maximum marshal recursion depth on release builds. (GH-7401)

6 years agobpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)
Cheryl Sabella [Mon, 4 Jun 2018 15:58:44 +0000 (11:58 -0400)]
bpo-33763: IDLE: Replace label widget with text widget in code context (GH-7367)

6 years agobpo-33664: Scroll IDLE editor text by lines (GH-7351)
Cheryl Sabella [Mon, 4 Jun 2018 15:48:21 +0000 (11:48 -0400)]
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.

6 years agobpo-33734: asyncio/ssl: a bunch of bugfixes (#7321)
Yury Selivanov [Mon, 4 Jun 2018 15:32:35 +0000 (11:32 -0400)]
bpo-33734: asyncio/ssl: a bunch of bugfixes (#7321)

* 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)

6 years agobpo-31849: Fix warning in pyhash.c (GH-6799)
A. Jesse Jiryu Davis [Mon, 4 Jun 2018 10:57:08 +0000 (06:57 -0400)]
bpo-31849: Fix warning in pyhash.c (GH-6799)

6 years agobpo-27902: Add compatibility note to Profile docs (GH-7295)
Tobias Kunze [Mon, 4 Jun 2018 10:07:16 +0000 (12:07 +0200)]
bpo-27902: Add compatibility note to Profile docs (GH-7295)

6 years agobpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)
Farhaan Bukhsh [Mon, 4 Jun 2018 07:29:00 +0000 (12:59 +0530)]
bpo-33640, uuid.UUID doc: document endian of bytes parameter (GH-7263)

The bytes parameter uses big endian.

6 years agoRegenerate configure after changing configure.ac in GH-6987. (GH-7344)
Serhiy Storchaka [Mon, 4 Jun 2018 05:20:25 +0000 (08:20 +0300)]
Regenerate configure after changing configure.ac in GH-6987. (GH-7344)

6 years agobpo-33509: Fix test_warnings for python3 -Werror (GH-7365)
Victor Stinner [Mon, 4 Jun 2018 05:14:46 +0000 (07:14 +0200)]
bpo-33509: Fix test_warnings for python3 -Werror (GH-7365)

Fix test_warnings.test_module_globals() when python3 is run with
-Werror.

6 years agotravis: Fix macOS build (GH-7250)
INADA Naoki [Mon, 4 Jun 2018 03:57:03 +0000 (12:57 +0900)]
travis: Fix macOS build (GH-7250)

Homebrew's python is now python3, but travis preinstalls old python2.
So updated Homebrew requires `brew upgrade python` now.

This commit disables auto update and use preinstalled version of Homebrew.

6 years agobpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362)
Serhiy Storchaka [Mon, 4 Jun 2018 02:55:32 +0000 (05:55 +0300)]
bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362)

It depended on a global variable set by other tests.

6 years agobpo-33760: Fix file leaks in test_io. (GH-7361)
Serhiy Storchaka [Mon, 4 Jun 2018 02:53:56 +0000 (05:53 +0300)]
bpo-33760: Fix file leaks in test_io. (GH-7361)

6 years agobpo-33764: Appveyor fixes (GH-7364)
Zachary Ware [Mon, 4 Jun 2018 01:13:31 +0000 (20:13 -0500)]
bpo-33764: Appveyor fixes (GH-7364)

* Prevent spurious message if taking a shortcut
* Fix YAML style
* Disable largefile tests

6 years agobpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)
Serhiy Storchaka [Sun, 3 Jun 2018 17:56:52 +0000 (20:56 +0300)]
bpo-33761: Fix a file leak in test_iterparse in test_xml_etree. (GH-7358)

6 years agobpo-33750: Reset thread-local context precision in test_round(). (#7355)
Stefan Krah [Sun, 3 Jun 2018 16:40:00 +0000 (18:40 +0200)]
bpo-33750: Reset thread-local context precision in test_round(). (#7355)

6 years agobpo-27485: Change urlparse tests to use private methods. (GH-7070)
Cheryl Sabella [Sun, 3 Jun 2018 14:31:32 +0000 (10:31 -0400)]
bpo-27485: Change urlparse tests to use private methods. (GH-7070)

6 years agobpo-33744: Fix test_uu. (GH-7350)
Serhiy Storchaka [Sun, 3 Jun 2018 14:22:42 +0000 (17:22 +0300)]
bpo-33744: Fix test_uu. (GH-7350)

Separate tests leaked files or were depended on files leaked in other tests.

6 years agobpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
Zackery Spytz [Sat, 2 Jun 2018 15:02:16 +0000 (09:02 -0600)]
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)

`writerows()` takes an iterable.

6 years agoFix typo in datamodel.rst (GH-6964)
Zach Mitchell [Sat, 2 Jun 2018 14:29:47 +0000 (10:29 -0400)]
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 ...".

6 years agoDocs: fix some wrong words (GH-6987)
Eitan Adler [Sat, 2 Jun 2018 14:16:19 +0000 (07:16 -0700)]
Docs: fix some wrong words (GH-6987)

Fix typos in code comments: bdb.py and configure.ac.

6 years agobpo-33562: Check the global asyncio event loop policy isn't set after any tests ...
Brett Cannon [Sat, 2 Jun 2018 03:34:09 +0000 (20:34 -0700)]
bpo-33562: Check the global asyncio event loop policy isn't set after any tests (GH-7328)

6 years agobpo-33679: IDLE: Re-enable color configuration for code context (GH-7199)
Cheryl Sabella [Sat, 2 Jun 2018 01:45:54 +0000 (21:45 -0400)]
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.

6 years agobpo-33615: Re-enable a subinterpreter test. (gh-7251)
Eric Snow [Sat, 2 Jun 2018 00:45:20 +0000 (18:45 -0600)]
bpo-33615: Re-enable a subinterpreter test. (gh-7251)

For bpo-32604 I added extra subinterpreter-related tests (see #6914), which caused a few buildbots to crash. This patch fixes the crash by ensuring that refcounts in channels are handled properly.

6 years agobpo-33642: IDLE: Use variable number of lines in CodeContext. (GH-7106)
Cheryl Sabella [Fri, 1 Jun 2018 23:23:00 +0000 (19:23 -0400)]
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.

6 years agobpo-33724: Use the right format code for int64_t in subinterpreters code. (gh-7330)
Eric Snow [Fri, 1 Jun 2018 22:26:01 +0000 (16:26 -0600)]
bpo-33724: Use the right format code for int64_t in subinterpreters code. (gh-7330)

6 years agobpo-29235: Make cProfile.Profile a context manager (GH-6808)
Scott Sanderson [Fri, 1 Jun 2018 20:36:23 +0000 (16:36 -0400)]
bpo-29235: Make cProfile.Profile a context manager (GH-6808)

6 years agobpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7319)
Victor Stinner [Fri, 1 Jun 2018 14:48:34 +0000 (16:48 +0200)]
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.

6 years agobpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7310)
Victor Stinner [Fri, 1 Jun 2018 12:21:34 +0000 (14:21 +0200)]
bpo-33540: Fix socketserver.ThreadingMixIn if block_on_close=False (GH-7310)

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)
pkerling [Fri, 1 Jun 2018 09:47:18 +0000 (09:47 +0000)]
bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146)

6 years agobpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation...
Vinay Sajip [Fri, 1 Jun 2018 09:09:21 +0000 (10:09 +0100)]
bpo-33400: Removed references to RFC3339 and ISO8601 from the logging documentation. (GH-7297)

6 years agobpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296)
Vinay Sajip [Fri, 1 Jun 2018 09:08:33 +0000 (10:08 +0100)]
bpo-32519: Removed misleading sentence from EnvBuilder documentation. (GH-7296)

6 years agobpo-33718: regrtest: enhance "running:" formatting (GH-7292)
Victor Stinner [Fri, 1 Jun 2018 09:04:45 +0000 (11:04 +0200)]
bpo-33718: regrtest: enhance "running:" formatting (GH-7292)

* "running:" progress: Format number of seconds as hours and minutes
* format_duration(): count also minutes as hours
* Create Lib/test/libregrtest/utils.py

6 years agobpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293)
Victor Stinner [Fri, 1 Jun 2018 09:04:29 +0000 (11:04 +0200)]
bpo-33692: pythoninfo detect libedit on Python 3.6 (GH-7293)

Check which readline implementation is used based on the readline
docstring.

6 years agobpo-33606: improve logging performance when logger is disabled (GH-7285)
Timo Furrer [Fri, 1 Jun 2018 07:29:46 +0000 (09:29 +0200)]
bpo-33606: improve logging performance when logger is disabled (GH-7285)

A check has been added in Logger.isEnabledFor() to return False when the logger is disabled. This avoids unnecessary work being done when a disabled logger is used.

6 years agobpo-33718: regrtest keeps filters to re-run fails (GH-7291)
Victor Stinner [Thu, 31 May 2018 22:48:57 +0000 (00:48 +0200)]
bpo-33718: regrtest keeps filters to re-run fails (GH-7291)

* No longer clear filters, like --match, to re-run failed tests in
  verbose mode (-w option).
* Tests result: always indicate if tests have been interrupted.
* Enhance tests summary

6 years agobpo-33717: pythoninfo: add CC --version (#7290)
Victor Stinner [Thu, 31 May 2018 22:33:03 +0000 (00:33 +0200)]
bpo-33717: pythoninfo: add CC --version (#7290)

Get the version of the C compiler.

6 years agobpo-33615: Temporarily disable a test that is triggering crashes on a few buildbots...
Eric Snow [Thu, 31 May 2018 16:17:24 +0000 (10:17 -0600)]
bpo-33615: Temporarily disable a test that is triggering crashes on a few buildbots. (gh-7288)

For bpo-32604 I added some subinterpreter-related tests (see #6914) that are causing crashes on a few buildbots. I'm working on fixing the crashes (see #7251).  This change temporarily disables the triggering test.

6 years agobpo-33706: Fix pymain_parse_cmdline_impl() (GH-7283)
Victor Stinner [Thu, 31 May 2018 13:09:28 +0000 (15:09 +0200)]
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!

6 years agobpo-32911: Add the historical note about the magic number. (GH-7273)
Serhiy Storchaka [Thu, 31 May 2018 06:11:55 +0000 (09:11 +0300)]
bpo-32911: Add the historical note about the magic number. (GH-7273)

6 years agoFix "ditribution" typo in NEWS entry. (GH-7274)
Ned Deily [Thu, 31 May 2018 05:18:49 +0000 (01:18 -0400)]
Fix "ditribution" typo in NEWS entry. (GH-7274)

6 years agoAdds new upload script for Windows releases (GH-7268)
Steve Dower [Thu, 31 May 2018 05:13:43 +0000 (22:13 -0700)]
Adds new upload script for Windows releases (GH-7268)

6 years agobpo-33641: Convert RFC references into links. (GH-7103)
Serhiy Storchaka [Thu, 31 May 2018 04:39:00 +0000 (07:39 +0300)]
bpo-33641: Convert RFC references into links. (GH-7103)

85% of them are already links.

6 years agobpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)
Serhiy Storchaka [Thu, 31 May 2018 04:34:34 +0000 (07:34 +0300)]
bpo-33677: Fix signatures of tp_clear handlers for AST and deque. (GH-7196)

6 years agobpo-33532: Fix multiprocessing test_ignore() (#7262)
Victor Stinner [Thu, 31 May 2018 03:08:42 +0000 (05:08 +0200)]
bpo-33532: Fix multiprocessing test_ignore() (#7262)

Fix test_ignore() of multiprocessing tests like
test_multiprocessing_forkserver: use support.PIPE_MAX_SIZE to make
sure that send_bytes() blocks.

6 years agobpo-31368: Enhance os.preadv() documentation (GH-7254)
Pablo Galindo [Wed, 30 May 2018 23:00:04 +0000 (00:00 +0100)]
bpo-31368: Enhance os.preadv() documentation (GH-7254)

6 years ago3.6 what's new: fix a reference to PEP 528 (#7113)
Dmitry Shachnev [Wed, 30 May 2018 22:52:43 +0000 (01:52 +0300)]
3.6 what's new: fix a reference to PEP 528 (#7113)

6 years agobpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)
Andrés Delfino [Wed, 30 May 2018 16:08:25 +0000 (13:08 -0300)]
bpo-33696: Install python-docs-theme even if SPHINXBUILD is defined (GH-7242)

6 years agobpo-33691: Add _PyAST_GetDocString(). (GH-7236)
Serhiy Storchaka [Wed, 30 May 2018 07:56:16 +0000 (10:56 +0300)]
bpo-33691: Add _PyAST_GetDocString(). (GH-7236)

6 years agoImprove ensurepip's --help (GH-4686)
Wieland Hoffmann [Wed, 30 May 2018 07:45:55 +0000 (09:45 +0200)]
Improve ensurepip's --help (GH-4686)

* 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.

6 years agobpo-33238: Add InvalidStateError to concurrent.futures. (GH-7056)
jhaydaman [Wed, 30 May 2018 07:15:06 +0000 (02:15 -0500)]
bpo-33238: Add InvalidStateError to concurrent.futures. (GH-7056)

Future.set_result and Future.set_exception now raise InvalidStateError
if the futures are not pending or running. This mirrors the behavior
of asyncio.Future, and prevents AssertionErrors in asyncio.wrap_future
when set_result is called multiple times.

6 years agoRevert "A better fix for asyncio test_stdin_broken_pipe (GH-7221)" (GH-7235)
Yury Selivanov [Wed, 30 May 2018 02:00:31 +0000 (22:00 -0400)]
Revert "A better fix for asyncio test_stdin_broken_pipe (GH-7221)" (GH-7235)

This reverts commit ad74d50517c069359578014bb32e660828d68332.

Turns out it's not a good fix -- Travis has just crashed on this test.

6 years agoA better fix for asyncio test_stdin_broken_pipe (#7221)
Yury Selivanov [Wed, 30 May 2018 00:57:50 +0000 (20:57 -0400)]
A better fix for asyncio test_stdin_broken_pipe (#7221)

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

This reverts commit 5d97b7bcc19496617bf8c448d2f149cc28c73bc7.

6 years agoFix typo introduced in GH-7217 (#7230)
Elvis Pranskevichus [Wed, 30 May 2018 00:14:59 +0000 (20:14 -0400)]
Fix typo introduced in GH-7217 (#7230)

6 years agobpo-32684: Fix nits in tests (GH-7225)
Yury Selivanov [Tue, 29 May 2018 23:20:26 +0000 (19:20 -0400)]
bpo-32684: Fix nits in tests (GH-7225)

6 years agoFix whatsnew entry about ThreadedHTTPServer. (GH-7220)
Julien Palard [Tue, 29 May 2018 22:44:12 +0000 (00:44 +0200)]
Fix whatsnew entry about ThreadedHTTPServer. (GH-7220)

6 years agobpo-23859: Document that asyncio.wait() does not cancel its futures (#7217)
Elvis Pranskevichus [Tue, 29 May 2018 22:21:44 +0000 (18:21 -0400)]
bpo-23859: Document that asyncio.wait() does not cancel its futures (#7217)

Unlike `asyncio.wait_for()`, `asyncio.wait()` does not cancel the passed
futures when a timeout accurs.

6 years agobpo-32751: Wait for task cancellation in asyncio.wait_for() (GH-7216)
Elvis Pranskevichus [Tue, 29 May 2018 21:31:01 +0000 (17:31 -0400)]
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.

6 years agobpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209)
Yury Selivanov [Tue, 29 May 2018 21:20:02 +0000 (17:20 -0400)]
bpo-32684: Fix gather to propagate cancel of itself with return_exceptions (GH-7209)

6 years agobpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195)
Géry Ogam [Tue, 29 May 2018 20:10:30 +0000 (22:10 +0200)]
bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195)

6 years agobpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)
Yury Selivanov [Tue, 29 May 2018 19:38:07 +0000 (15:38 -0400)]
bpo-22087: Fix Policy.get_event_loop() to detect fork (GH-7208)

Original patch by Dan O'Reilly.

6 years agobpo-30935: update get_event_loop docs (GH-2731)
Mandeep Singh [Tue, 29 May 2018 18:37:08 +0000 (00:07 +0530)]
bpo-30935: update get_event_loop docs (GH-2731)

6 years agoAttempt to fix test_stdin_broken_pipe on Travis (#7210)
Yury Selivanov [Tue, 29 May 2018 17:40:47 +0000 (13:40 -0400)]
Attempt to fix test_stdin_broken_pipe on Travis (#7210)

6 years agobpo-33622: Add checks for exceptions leaks in the garbage collector. (GH-7126)
Serhiy Storchaka [Tue, 29 May 2018 15:50:10 +0000 (18:50 +0300)]
bpo-33622: Add checks for exceptions leaks in the garbage collector. (GH-7126)

* Failure in adding to gc.garbage is no longer fatal.
* An exception in tp_clear() no longer lead to crash (though tp_clear() should not leave exceptions).

6 years agobpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636)
Dong-hee Na [Tue, 29 May 2018 15:04:08 +0000 (00:04 +0900)]
bpo-33197: Update a error message of invalid inspect.Parameters. (GH-6636)

6 years agobpo-33353: test_asyncio use set_write_buffer_limits() (GH-7200)
Victor Stinner [Tue, 29 May 2018 14:02:07 +0000 (16:02 +0200)]
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.

6 years agobpo-32911: Revert bpo-29463. (GH-7121) (GH-7197)
Serhiy Storchaka [Tue, 29 May 2018 09:04:55 +0000 (12:04 +0300)]
bpo-32911: Revert bpo-29463. (GH-7121) (GH-7197)

Remove the docstring attribute of AST types and restore docstring
expression as a first stmt in their body.

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
6 years agobpo-33654: Support protocol type switching in SSLTransport.set_protocol() (#7194)
Yury Selivanov [Tue, 29 May 2018 09:02:40 +0000 (05:02 -0400)]
bpo-33654: Support protocol type switching in SSLTransport.set_protocol() (#7194)

6 years agobpo-33674: Pause the transport as early as possible (#7192)
Yury Selivanov [Tue, 29 May 2018 05:00:12 +0000 (01:00 -0400)]
bpo-33674: Pause the transport as early as possible (#7192)

6 years agobpo-32878: Adds documentation for st_ino on Windows (GH-5764)
Steve Dower [Tue, 29 May 2018 00:24:36 +0000 (17:24 -0700)]
bpo-32878: Adds documentation for st_ino on Windows (GH-5764)

6 years agobpo-33674: asyncio: Fix SSLProtocol race (GH-7175)
Victor Stinner [Mon, 28 May 2018 23:33:35 +0000 (01:33 +0200)]
bpo-33674: asyncio: Fix SSLProtocol race (GH-7175)

Fix a race condition in SSLProtocol.connection_made() of
asyncio.sslproto: start immediately the handshake instead of using
call_soon(). Previously, data_received() could be called before the
handshake started, causing the handshake to hang or fail.

6 years agobpo-33670: Expose Sphinx errorlevel (GH-7156)
Andrés Delfino [Mon, 28 May 2018 23:28:22 +0000 (20:28 -0300)]
bpo-33670: Expose Sphinx errorlevel (GH-7156)

6 years agobpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)
Andrés Delfino [Mon, 28 May 2018 23:20:34 +0000 (20:20 -0300)]
bpo-33673: Install python-docs-theme even if Sphinx is already installed (GH-7163)

6 years agobpo-32410: Avoid blocking on file IO in sendfile fallback code (GH-7172)
Yury Selivanov [Mon, 28 May 2018 22:31:55 +0000 (18:31 -0400)]
bpo-32410: Avoid blocking on file IO in sendfile fallback code (GH-7172)

6 years agobpo-32610: Fix asyncio.all_tasks() to return only pending tasks. (GH-7174)
Yury Selivanov [Mon, 28 May 2018 21:54:02 +0000 (17:54 -0400)]
bpo-32610: Fix asyncio.all_tasks() to return only pending tasks. (GH-7174)

6 years agobpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)
Yury Selivanov [Mon, 28 May 2018 21:10:20 +0000 (17:10 -0400)]
bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171)

6 years agobro-33614: Override exit code in find_msbuild.bat (GH-7169)
Steve Dower [Mon, 28 May 2018 21:05:05 +0000 (14:05 -0700)]
bro-33614: Override exit code in find_msbuild.bat (GH-7169)

6 years agobpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7161)
Yury Selivanov [Mon, 28 May 2018 20:27:34 +0000 (16:27 -0400)]
bpo-33672: Fix Task.__repr__ crash with Cython's bogus coroutines (GH-7161)

6 years agobpo-32458: Further tune start_tls tests (#7166)
Yury Selivanov [Mon, 28 May 2018 19:48:59 +0000 (15:48 -0400)]
bpo-32458: Further tune start_tls tests (#7166)

6 years agobpo-33614: Ensures module definition files for the stable ABI on Windows are correctl...
Steve Dower [Mon, 28 May 2018 19:32:05 +0000 (12:32 -0700)]
bpo-33614: Ensures module definition files for the stable ABI on Windows are correctly regenerated. (GH-7165)

6 years agoregrtest: repeat summary after re-run (GH-7159)
Victor Stinner [Mon, 28 May 2018 19:03:43 +0000 (21:03 +0200)]
regrtest: repeat summary after re-run (GH-7159)

Using -w, when failing tests are re-run in verbose mode, display
again the tests results at the end.

6 years agobpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130)
Yury Selivanov [Mon, 28 May 2018 18:31:28 +0000 (14:31 -0400)]
bpo-33654: Support BufferedProtocol in set_protocol() and start_tls() (GH-7130)

In this commit:

* Support BufferedProtocol in set_protocol() and start_tls()
* Fix proactor to cancel readers reliably
* Update tests to be compatible with OpenSSL 1.1.1
* Clarify BufferedProtocol docs
* Bump TLS tests timeouts to 60 seconds; eliminate possible race from start_serving
* Rewrite test_start_tls_server_1

6 years agobpo-33505: Optimize asyncio.ensure_future by reordering if conditions (GH-6836)
jimmylai [Mon, 28 May 2018 16:42:05 +0000 (06:42 -1000)]
bpo-33505: Optimize asyncio.ensure_future by reordering if conditions (GH-6836)

6 years agobpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149)
twisteroid ambassador [Mon, 28 May 2018 15:16:45 +0000 (23:16 +0800)]
bpo-31647: Fix write_eof() after close() for SelectorSocketTransport (GH-7149)

Fixed bug where calling write_eof() on a _SelectorSocketTransport after
it's already closed raises AttributeError.

6 years agobpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__ (#7080)
Yury Selivanov [Mon, 28 May 2018 15:11:31 +0000 (11:11 -0400)]
bpo-33623: Fix possible SIGSGV when asyncio.Future is created in __del__ (#7080)

6 years agobpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145)
Marcel Plch [Mon, 28 May 2018 12:11:20 +0000 (14:11 +0200)]
bpo-32374: Ignore Python-level exceptions in test_bad_traverse (GH-7145)

6 years agobpo-33652: Remove __getstate__ and __setstate__ methods in typing. (GH-7144)
Serhiy Storchaka [Mon, 28 May 2018 10:54:56 +0000 (13:54 +0300)]
bpo-33652: Remove __getstate__ and __setstate__ methods in typing. (GH-7144)