]> granicus.if.org Git - python/log
python
7 years agobpo-31160: regrtest now reaps child processes (#3044)
Victor Stinner [Wed, 9 Aug 2017 15:44:33 +0000 (17:44 +0200)]
bpo-31160: regrtest now reaps child processes (#3044)

Add a post_test_cleanup() function which currently only calls
support.reap_children().

7 years agobpo-31160: Fix test_builtin for zombie process (#3043)
Victor Stinner [Wed, 9 Aug 2017 15:44:19 +0000 (17:44 +0200)]
bpo-31160: Fix test_builtin for zombie process (#3043)

PtyTests.run_child() now calls os.waitpid() to read the exit status
of the child process to avoid creating zombie process and leaking
processes in the background.

7 years agobpo-31159: fix language switch regex on unknown yet built languages. (#3039)
Julien Palard [Wed, 9 Aug 2017 15:01:15 +0000 (17:01 +0200)]
bpo-31159: fix language switch regex on unknown yet built languages. (#3039)

This fix a regex issue (a missing non-matching group around an 'or'
list) and the specific possible case where a translation is built but
not yet in known by the picker, but not explicitly listing possible
languages in the regex.

7 years agobpo-31072: Add filter to zipapp (#3021)
Jeffrey Rackauckas [Wed, 9 Aug 2017 13:37:17 +0000 (06:37 -0700)]
bpo-31072: Add filter to zipapp (#3021)

bpo-31072: Add a filter argument to zipapp.create_archive (GH-3021)

* Add an include_file argument to allow callers to decide which files to include
* Document the new argument

7 years agobpo-31070: Fix a race condition in importlib _get_module_lock(). (#3033)
Serhiy Storchaka [Wed, 9 Aug 2017 11:29:12 +0000 (14:29 +0300)]
bpo-31070: Fix a race condition in importlib _get_module_lock(). (#3033)

7 years agobpo-31150: Wait for child process in test_forkinthread to avoid thread reaped warning...
Ammar Askar [Wed, 9 Aug 2017 08:51:43 +0000 (04:51 -0400)]
bpo-31150: Wait for child process in test_forkinthread to avoid thread reaped warnings (#3032)

7 years agobpo-31149: Doc: Add Japanese to the language switcher. (#3028)
Julien Palard [Tue, 8 Aug 2017 21:26:46 +0000 (23:26 +0200)]
bpo-31149: Doc: Add Japanese to the language switcher. (#3028)

7 years agottk: fix LabeledScale and OptionMenu destroy() method (#3025)
Victor Stinner [Tue, 8 Aug 2017 17:41:21 +0000 (19:41 +0200)]
ttk: fix LabeledScale and OptionMenu destroy() method (#3025)

bpo-31135: Call the parent destroy() method even if the used
attribute doesn't exist.

The LabeledScale.destroy() method now also explicitly clears label
and scale attributes to help the garbage collector to destroy all
widgets.

7 years agobpo-31130: IDLE -- stop leaks in test_configdialog. (#3016)
Terry Jan Reedy [Mon, 7 Aug 2017 18:22:44 +0000 (14:22 -0400)]
bpo-31130: IDLE -- stop leaks in test_configdialog. (#3016)

Initial patch by Victor Stinner.

7 years agobpo-29910: IDLE - revert `break`s that disabled calltip close. (#2997)
Terry Jan Reedy [Mon, 7 Aug 2017 17:37:10 +0000 (13:37 -0400)]
bpo-29910: IDLE - revert `break`s that disabled calltip close. (#2997)

7 years agobpo-31045: Language switch (#2652)
Julien [Mon, 7 Aug 2017 08:27:21 +0000 (10:27 +0200)]
bpo-31045: Language switch (#2652)

* Doc: Indicate the language

* Renaming version_switcher to switchers (to add language_switcher).

* Adding language switch.

* Doc switchers: Enhance readability of regex parsing versions.

* Doc switchers: Desambiguate the need of a replace(/\/+$/g, '') by proper naming.

* Doc switchers: py3k can't reach js, it's redirected server-side by nginx.

* Doc switchers: Examples matching actual regexes.

* Doc switchers: Better fallback on unexisting translated version.

7 years agoadd myself to CODEOWNERS for subprocess. (#3005)
Gregory P. Smith [Sat, 5 Aug 2017 02:00:06 +0000 (20:00 -0600)]
add myself to CODEOWNERS for subprocess. (#3005)

7 years agoNotify the import-team on import-related PRs (GH-3002)
Brett Cannon [Fri, 4 Aug 2017 21:14:32 +0000 (14:14 -0700)]
Notify the import-team on import-related PRs (GH-3002)

7 years agoAdd author of the fix for #30841 to ACKS. (#3001)
Łukasz Langa [Fri, 4 Aug 2017 18:21:37 +0000 (11:21 -0700)]
Add author of the fix for #30841 to ACKS. (#3001)

7 years agoFix a shadow-compatible-local warning (#2180)
Yuan Chao Chou [Fri, 4 Aug 2017 17:53:12 +0000 (10:53 -0700)]
Fix a shadow-compatible-local warning (#2180)

Change the shadowing naming, 'value' (Python-ast.c:4652), to 'val'
to prevent the variables from being misused.

7 years agobpo-31107: Fix copyreg mangled slot names calculation. (#2989)
Shane Harvey [Fri, 4 Aug 2017 08:45:00 +0000 (01:45 -0700)]
bpo-31107: Fix copyreg mangled slot names calculation. (#2989)

7 years agobpo-29304: Simplify dict lookup functions (GH-2407)
INADA Naoki [Thu, 3 Aug 2017 14:45:15 +0000 (23:45 +0900)]
bpo-29304: Simplify dict lookup functions (GH-2407)

* remove hashpos parameter from lookdict functions.
* remove many duplicated code from lookdict functions.

7 years agoImprove grammar in asyncio documentation (GH-2993)
Mike DePalatis [Thu, 3 Aug 2017 14:20:42 +0000 (10:20 -0400)]
Improve grammar in asyncio documentation (GH-2993)

"not only is it .." is the correct form, as opposed to:
"not only it is ..."

7 years agobpo-30978: str.format_map() now passes key lookup exceptions through. (#2790)
Serhiy Storchaka [Thu, 3 Aug 2017 08:45:23 +0000 (11:45 +0300)]
bpo-30978: str.format_map() now passes key lookup exceptions through. (#2790)

Previously any exception was replaced with a KeyError exception.

7 years agobpo-31071: Avoid masking original TypeError in call with * unpacking (#2957)
Serhiy Storchaka [Thu, 3 Aug 2017 08:37:15 +0000 (11:37 +0300)]
bpo-31071: Avoid masking original TypeError in call with * unpacking (#2957)

when other arguments are passed.

7 years agoSpelling fixes (#2902)
Ville Skyttä [Thu, 3 Aug 2017 06:00:59 +0000 (09:00 +0300)]
Spelling fixes (#2902)

7 years agoAdd @bitdancer as codeowner of email related stuff. (GH-2987)
R. David Murray [Wed, 2 Aug 2017 22:50:50 +0000 (18:50 -0400)]
Add @bitdancer as codeowner of email related stuff. (GH-2987)

7 years agobpo-31080: Allowed logging.config.fileConfig() to accept both args and kwargs. (GH...
Preston Landers [Wed, 2 Aug 2017 20:44:28 +0000 (15:44 -0500)]
bpo-31080: Allowed logging.config.fileConfig() to accept both args and kwargs. (GH-2979)

7 years agobpo-31061: fix crash in asyncio speedup module (GH-2966)
Alexander Mohr [Wed, 2 Aug 2017 06:31:07 +0000 (23:31 -0700)]
bpo-31061: fix crash in asyncio speedup module (GH-2966)

7 years agoDocument Path.is_mount(), update Misc/ACKS and Misc/NEWS (#2980)
Łukasz Langa [Tue, 1 Aug 2017 23:47:50 +0000 (16:47 -0700)]
Document Path.is_mount(), update Misc/ACKS and Misc/NEWS (#2980)

7 years agoAdd @1st1 as co-owner of asyncio and genobject (#2978)
Yury Selivanov [Tue, 1 Aug 2017 22:41:33 +0000 (18:41 -0400)]
Add @1st1 as co-owner of asyncio and genobject (#2978)

7 years agobpo-30897: Add is_mount() to pathlib.Path (#2669)
Cooper Lees [Tue, 1 Aug 2017 22:35:45 +0000 (15:35 -0700)]
bpo-30897: Add is_mount() to pathlib.Path (#2669)

* Add in is_mount() call to pathlib.Path similiar to os.path.ismount(path)
* Add tests for is_mount()

7 years agoList myself as interested in all import-related pull requests (GH-2976)
Brett Cannon [Tue, 1 Aug 2017 21:51:17 +0000 (14:51 -0700)]
List myself as interested in all import-related pull requests (GH-2976)

7 years agobpo-31084: QueueHandler now formats messages correctly. (GH-2954)
favll [Tue, 1 Aug 2017 18:12:26 +0000 (20:12 +0200)]
bpo-31084: QueueHandler now formats messages correctly. (GH-2954)

7 years agobpo-31083: IDLE: Describe the Page classes in configdialog (#2965)
csabella [Tue, 1 Aug 2017 04:24:07 +0000 (00:24 -0400)]
bpo-31083: IDLE: Describe the Page classes in configdialog (#2965)

Add template as comment. Update existing classes to match outline.
Initial patch by Cheryl Sabella.

7 years agoRemove .mention-bot (GH-2923)
Mariatta [Tue, 1 Aug 2017 03:56:35 +0000 (20:56 -0700)]
Remove .mention-bot (GH-2923)

7 years agoCreate CODEOWNERS (GH-2924)
Mariatta [Tue, 1 Aug 2017 03:56:12 +0000 (20:56 -0700)]
Create CODEOWNERS (GH-2924)

Copied over info from .mention-bot

7 years agobpo-31091: Remove dead code in PyErr_GivenExceptionMatches(). (#2963)
scoder [Mon, 31 Jul 2017 20:27:46 +0000 (22:27 +0200)]
bpo-31091: Remove dead code in PyErr_GivenExceptionMatches(). (#2963)

According to the comment, there was previously a call to PyObject_IsSubclass() involved which could fail, but since it was replaced with a call to PyType_IsSubtype(), it can no longer fail.

7 years agobpo-25910: Update LICENSE (GH-2873)
Mariatta [Mon, 31 Jul 2017 18:16:14 +0000 (11:16 -0700)]
bpo-25910: Update LICENSE (GH-2873)

Use the copy provided in https://bugs.python.org/issue25910#msg295200

7 years agoCloses issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896)
Alexander Belopolsky [Mon, 31 Jul 2017 14:26:50 +0000 (10:26 -0400)]
Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896)

* Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets.

* bpo-5288: Implemented %z formatting of sub-minute offsets.

* bpo-5288: Removed mentions of the whole minute limitation on TZ offsets.

* bpo-5288: Removed one more mention of the whole minute limitation.

Thanks @csabella!

* Fix a formatting error in the docs

* Addressed review comments.

Thanks, @haypo.

7 years agobpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and PyEval_EvalCodeEx...
Zackery Spytz [Mon, 31 Jul 2017 14:24:37 +0000 (08:24 -0600)]
bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and PyEval_EvalCodeEx() (#2919)

k + 1 was calculated with k = NULL.

7 years agobpo-25684: ttk.OptionMenu radiobuttons weren't unique (#2276)
csabella [Mon, 31 Jul 2017 09:30:09 +0000 (05:30 -0400)]
bpo-25684: ttk.OptionMenu radiobuttons weren't unique (#2276)

between instances of OptionMenu.

7 years agobpo-31050: IDLE: Factor GenPage class from ConfigDialog (#2952)
csabella [Sun, 30 Jul 2017 22:39:17 +0000 (18:39 -0400)]
bpo-31050: IDLE: Factor GenPage class from ConfigDialog (#2952)

The slightly modified tests for the General tab continue to pass.
Patch by Cheryl Sabella.

7 years agoUpdated LoggerAdapter.isEnabledFor to take advantage of caching. (GH-2951)
Vinay Sajip [Sun, 30 Jul 2017 19:15:18 +0000 (20:15 +0100)]
Updated LoggerAdapter.isEnabledFor to take advantage of caching. (GH-2951)

7 years agobpo-31004: IDLE: Factor out FontPage class from configdialog (step 1) (#2905)
csabella [Sun, 30 Jul 2017 17:34:25 +0000 (13:34 -0400)]
bpo-31004: IDLE: Factor out FontPage class from configdialog (step 1) (#2905)

The slightly modified tests continue to pass. The General test
broken by the switch to Notebook is fixed.
Patch mostly by Cheryl Sabella.

7 years agobpo-30928: Update IDLE News.txt. (#2948)
Terry Jan Reedy [Sun, 30 Jul 2017 10:25:22 +0000 (06:25 -0400)]
bpo-30928: Update IDLE News.txt. (#2948)

7 years agobpo-30522: Implemented a method to allow setting a logging.StreamHander's stream...
Vinay Sajip [Sun, 30 Jul 2017 09:41:45 +0000 (10:41 +0100)]
bpo-30522: Implemented a method to allow setting a logging.StreamHander's stream. (GH-2921)

7 years agobpo-30962: Added caching to Logger.isEnabledFor() (GH-2752)
Avram Lubkin [Sun, 30 Jul 2017 09:36:33 +0000 (05:36 -0400)]
bpo-30962: Added caching to Logger.isEnabledFor() (GH-2752)

7 years agobpo-30803: clarify truth value testing documentation (#2508)
Peter Thomassen [Sat, 29 Jul 2017 19:18:13 +0000 (21:18 +0200)]
bpo-30803: clarify truth value testing documentation (#2508)

Initial patch by Peter Thomassen.

7 years agobpo-31027: Fix test_listcomps failure when run directly (#2939)
Zackery Spytz [Sat, 29 Jul 2017 16:05:55 +0000 (10:05 -0600)]
bpo-31027: Fix test_listcomps failure when run directly (#2939)

Bug appears to be incomplete copy-paste-edit.

7 years agobpo-30781: IDLE - Use ttk Notebook in ConfigDialog (#2938)
Terry Jan Reedy [Sat, 29 Jul 2017 04:49:39 +0000 (00:49 -0400)]
bpo-30781: IDLE - Use ttk Notebook in ConfigDialog (#2938)

The notebook looks a bit better.  It will work better with separate page classes. Traversal of widgets by Tab works better.  Switching tabs with keys becomes possible.  The font sample box works better at large font sizes.

One of the two simulated click tests no longer works.  This will be investigated while fixing a bug with the widget itself.

7 years agobpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (#2936)
Terry Jan Reedy [Fri, 28 Jul 2017 21:00:02 +0000 (17:00 -0400)]
bpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (#2936)

Add clear method for tests.  Adjust tests to use global instance.
Remove unneeded ConfigDialog method.

7 years agobpo-30853: IDLE: Convert font and general vars to use VarTrace (#2914)
csabella [Fri, 28 Jul 2017 18:40:59 +0000 (14:40 -0400)]
bpo-30853: IDLE: Convert font and general vars to use VarTrace (#2914)

Instance tracers manages pairs consisting of a tk variable and a
callback function.  When tracing is turned on, setting the variable
calls the function.  Test coverage for the new class is 100%.

7 years agoFix trivial typo in multiprocessing documentation (GH-2930)
Yuval Langer [Fri, 28 Jul 2017 17:39:35 +0000 (20:39 +0300)]
Fix trivial typo in multiprocessing documentation (GH-2930)

7 years agobpo-31066: Fix test_httpservers.test_last_modified() (#2933)
Victor Stinner [Fri, 28 Jul 2017 16:15:02 +0000 (18:15 +0200)]
bpo-31066: Fix test_httpservers.test_last_modified() (#2933)

Write the temporary file on disk and then get its modification time.

7 years agobpo-31067: test_subprocess calls reap_children() (#2931)
Victor Stinner [Fri, 28 Jul 2017 16:00:22 +0000 (18:00 +0200)]
bpo-31067: test_subprocess calls reap_children() (#2931)

test_subprocess now also calls reap_children() in tearDown(), not
only on setUp().

7 years agobpo-30302: Update WhatsNew and documentation. (#2929)
Utkarsh Upadhyay [Fri, 28 Jul 2017 12:42:56 +0000 (14:42 +0200)]
bpo-30302: Update WhatsNew and documentation. (#2929)

* Update 'Porting to .37' section.

* Fix a minor example in the doc.

7 years agobpo-29585: fix test fail on macOS Framework build (GH-2928)
INADA Naoki [Fri, 28 Jul 2017 12:28:19 +0000 (21:28 +0900)]
bpo-29585: fix test fail on macOS Framework build (GH-2928)

7 years agobpo-28095: Re-enable temporarily disabled part of test_startup_imports on macOS ...
Ned Deily [Fri, 28 Jul 2017 07:02:10 +0000 (03:02 -0400)]
bpo-28095: Re-enable temporarily disabled part of test_startup_imports on macOS (#2927)

The changes for bpo-29585 eliminate the extra imports on macOS that caused
the original test failure.

This reverts commit 8a2150aae6db4d664c96a038ef6abacd4bcbcdc9.

7 years agobpo-31060: IDLE: Finish regrouping ConfigDialog methods (#2908)
Terry Jan Reedy [Thu, 27 Jul 2017 22:28:01 +0000 (18:28 -0400)]
bpo-31060: IDLE: Finish regrouping ConfigDialog methods (#2908)

Finish resorting the 72 ConfigDialog methods into 7 groups that represent the dialog, action buttons, and font, highlight, keys, general, and extension pages.  This will help with continuing to add tests and improve the pages. It will enable splitting ConfigDialog into 6 or 7 more comprehensible classes.

7 years agobpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915)
Victor Stinner [Thu, 27 Jul 2017 14:55:54 +0000 (16:55 +0200)]
bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915)

There is a bug in FreeBSD CURRENT with 64-bit dev_t. Skip the test if
dev_t is larger than 32-bit, until the bug is fixed in FreeBSD
CURRENT.

7 years agobpo-30814, bpo-30876: Add new import test files to projects. (#2851)
Serhiy Storchaka [Thu, 27 Jul 2017 09:24:36 +0000 (12:24 +0300)]
bpo-30814, bpo-30876: Add new import test files to projects. (#2851)

7 years agobpo-31028: Fix test_pydoc when run directly (#2864)
Victor Stinner [Thu, 27 Jul 2017 09:21:26 +0000 (11:21 +0200)]
bpo-31028: Fix test_pydoc when run directly (#2864)

* bpo-31028: Fix test_pydoc when run directly

Fix get_pydoc_link() of test_pydoc to fix "./python
Lib/test/test_pydoc.py": get the absolute path to __file__ to prevent
relative directories.

* Use realpath() instead of abspath()

7 years agobpo-9566: Change HANDLE argument parsing to unsigned in msvcrtmodule.c (#2904)
Segev Finer [Thu, 27 Jul 2017 03:15:18 +0000 (06:15 +0300)]
bpo-9566: Change HANDLE argument parsing to unsigned in msvcrtmodule.c (#2904)

7 years agobpo-31003: IDLE - Add more tests for General tab (#2859)
Terry Jan Reedy [Thu, 27 Jul 2017 00:54:40 +0000 (20:54 -0400)]
bpo-31003: IDLE - Add more tests for General tab (#2859)

* In configdialog: Document causal pathways in create_page_general.
Move related functions to follow this. Simplify some attribute names.
* In test_configdialog: Add tests for load and helplist functions.
Coverage for the general tab is now complete, and 63% overall.

7 years agobpo-30853: IDLE: Factor a VarTrace class from configdialog.ConfigDialog. (#2872)
csabella [Wed, 26 Jul 2017 23:09:58 +0000 (19:09 -0400)]
bpo-30853:  IDLE: Factor a VarTrace class from configdialog.ConfigDialog. (#2872)

The new class manages pairs of tk Variables and trace callbacks.
It is completely covered by new tests.

7 years agobpo-9566: Fixed _ssl module warnings (#2495)
Segev Finer [Wed, 26 Jul 2017 22:19:17 +0000 (01:19 +0300)]
bpo-9566: Fixed _ssl module warnings (#2495)

* bpo-9566: Fixed some _ssl warnings

* bpo-9566: _ssl: Fixup the fixes and also fix the remainings warnings

* Add a comment about the downcast

7 years agobpo-9566: Fix some Windows x64 compiler warnings (#2492)
Segev Finer [Wed, 26 Jul 2017 22:17:57 +0000 (01:17 +0300)]
bpo-9566: Fix some Windows x64 compiler warnings (#2492)

* bpo-9566: Silence liblzma warnings

* bpo-9566: Silence tcl warnings

* bpo-9566: Silence tk warnings

* bpo-9566: Silence tix warnings

* bpo-9566: Fix some library warnings

* bpo-9566: Fix msvcrtmodule.c warnings

* bpo-9566: Silence _bz2 warnings

* bpo-9566: Fixed some _ssl warnings

* bpo-9566: Fix _msi warnings

* bpo-9566: Silence _ctypes warnings

* Revert "bpo-9566: Fixed some _ssl warnings"

This reverts commit a639001c949ba53338a9ee047d2ec1efd2505e6f.

* bpo-9566: Also consider NULL as a possible error in HANDLE_return_converter

* bpo-9566: whitespace fixes

7 years agoFix build batch files (#2750)
Steve Dower [Wed, 26 Jul 2017 16:09:01 +0000 (09:09 -0700)]
Fix build batch files (#2750)

* Enable building MSI, zip and nuget packages when Py_OutDir is set.

* Restore the --build option, which got reverted at some point.

* Ensure output directory is created.

* Enables BuildForDaily and DailyBuildVersion options for nuget package.

7 years agobpo-9566: Fix a warning in Python/getargs.c (#2890)
Segev Finer [Wed, 26 Jul 2017 15:58:25 +0000 (18:58 +0300)]
bpo-9566: Fix a warning in Python/getargs.c (#2890)

7 years agobpo-30188: fix TypeError in test_nntplib (GH-2892)
INADA Naoki [Wed, 26 Jul 2017 14:43:22 +0000 (23:43 +0900)]
bpo-30188: fix TypeError in test_nntplib (GH-2892)

fixes regression of 5b4feb7

7 years agobpo-31043: fixed test_datetime run twice. (GH-2891)
Utkarsh Upadhyay [Wed, 26 Jul 2017 10:46:17 +0000 (12:46 +0200)]
bpo-31043: fixed test_datetime run twice. (GH-2891)

7 years agobpo-31019: Fix multiprocessing.Process.is_alive() (#2875)
Victor Stinner [Wed, 26 Jul 2017 00:32:42 +0000 (02:32 +0200)]
bpo-31019: Fix multiprocessing.Process.is_alive() (#2875)

multiprocessing.Process.is_alive() now removes the process from the
_children set if the process completed.

The change prevents leaking "dangling" processes.

7 years agoAdd the link to asyncio source code in the docs (GH-2373)
lf [Tue, 25 Jul 2017 23:03:51 +0000 (17:03 -0600)]
Add the link to asyncio source code in the docs (GH-2373)

7 years agobpo-30302 Make timedelta.__repr__ more informative. (#1493)
Utkarsh Upadhyay [Tue, 25 Jul 2017 21:51:33 +0000 (23:51 +0200)]
bpo-30302 Make timedelta.__repr__ more informative. (#1493)

7 years agobpo-31034: Reliable signal handler for test_asyncio (#2867)
Victor Stinner [Tue, 25 Jul 2017 17:19:09 +0000 (19:19 +0200)]
bpo-31034: Reliable signal handler for test_asyncio (#2867)

* bpo-31034: Reliable signal handler for test_asyncio

Don't rely on the current SIGHUP signal handler, make sure that it's
set to the "default" signal handler: SIG_DFL.

* Add comments

7 years agobpo-31009: Fix support.fd_count() on Windows (#2862)
Victor Stinner [Tue, 25 Jul 2017 15:45:53 +0000 (17:45 +0200)]
bpo-31009: Fix support.fd_count() on Windows (#2862)

* bpo-31009: Fix support.fd_count() on Windows

On Windows, test.support.fd_count() now calls
msvcrt.CrtSetReportMode() to not kill the process nor log any error
on stderr on os.dup(fd) if the file descriptor is invalid.

* Fix for release mode

7 years agobpo-31029: test_tokenize Add missing import unittest (#2865)
Stéphane Wirtel [Tue, 25 Jul 2017 13:33:53 +0000 (15:33 +0200)]
bpo-31029: test_tokenize Add missing import unittest (#2865)

7 years agoFix a small typo in a comment (#2863)
Stéphane Wirtel [Tue, 25 Jul 2017 12:32:08 +0000 (14:32 +0200)]
Fix a small typo in a comment (#2863)

7 years agobpo-31018: Switch to #pragma pack from __declspec(align) (#2848)
Segev Finer [Tue, 25 Jul 2017 08:47:43 +0000 (11:47 +0300)]
bpo-31018: Switch to #pragma pack from __declspec(align) (#2848)

7 years agobpo-26762: test_multiprocessing close more queues (#2855)
Victor Stinner [Tue, 25 Jul 2017 00:40:55 +0000 (02:40 +0200)]
bpo-26762: test_multiprocessing close more queues (#2855)

* Close explicitly queues to make sure that we don't leave dangling
  threads
* test_queue_in_process(): remove unused queue
* test_access() joins also the process to fix a random warning

7 years agotest_multiprocessing detects dangling per test case (#2841)
Victor Stinner [Mon, 24 Jul 2017 23:55:54 +0000 (01:55 +0200)]
test_multiprocessing detects dangling per test case (#2841)

bpo-26762: test_multiprocessing now detects dangling processes and
threads per test case classes:

* setUpClass()/tearDownClass() of mixin classes now check if
  multiprocessing.process._dangling or threading._dangling was
  modified to detect "dangling" processses and threads.
* ManagerMixin.tearDownClass() now also emits a warning if it still
  has more than one active child process after 5 seconds.
* tearDownModule() now checks for dangling processes and threads
  before sleep 500 ms. And it now only sleeps if there is a least one
  dangling process or thread.

7 years agotest_multiprocessing: Fix dangling process/thread (#2850)
Victor Stinner [Mon, 24 Jul 2017 22:33:56 +0000 (00:33 +0200)]
test_multiprocessing: Fix dangling process/thread (#2850)

bpo-26762: Fix more dangling processes and threads in
test_multiprocessing:

* Queue: call close() followed by join_thread()
* Process: call join() or self.addCleanup(p.join)

7 years agoMinor typo in curses.rst (#2763)
waxmoon [Mon, 24 Jul 2017 22:03:07 +0000 (10:03 +1200)]
Minor typo in curses.rst (#2763)

I found a tiny typo in the curses how-to: changed 'Thy' to 'The' on line 68.

7 years agobpo-30980: Fix double close in asyncore.file_wrapper (#2789)
Nir Soffer [Mon, 24 Jul 2017 21:18:06 +0000 (00:18 +0300)]
bpo-30980: Fix double close in asyncore.file_wrapper (#2789)

* bpo-30980: Fix close test to fail

test_close_twice was not considering the fact that file_wrapper is
duping the file descriptor. Closing the original descriptor left the
duped one open, hiding the fact that close protection is not effective.

* bpo-30980: Fix double close protection

Invalidated self.fd before closing, handling correctly the case when
os.close raises.

* bpo-30980: Fix fd leak introduced in the fixed test

7 years agobpo-30188: test_nntplib catch also ssl.SSLEOFError (#2843)
Victor Stinner [Mon, 24 Jul 2017 15:41:02 +0000 (17:41 +0200)]
bpo-30188: test_nntplib catch also ssl.SSLEOFError (#2843)

Catch also ssl.SSLEOFError in NetworkedNNTPTests setUpClass().
EOFError was already catched.

7 years agobpo-26762: Avoid daemon process in _test_multiprocessing (#2842)
Victor Stinner [Mon, 24 Jul 2017 11:02:20 +0000 (13:02 +0200)]
bpo-26762: Avoid daemon process in _test_multiprocessing (#2842)

test_level() of _test_multiprocessing._TestLogging now uses regular
processes rather than daemon processes to prevent zombi processes
(to not "leak" processes).

7 years agoMore Mac installer fixes for git-based workflow (#2839)
Ned Deily [Mon, 24 Jul 2017 08:58:43 +0000 (04:58 -0400)]
More Mac installer fixes for git-based workflow (#2839)

7 years agobpo-30993: IDLE - Improve configdialog font page and tests. (#2831)
Terry Jan Reedy [Mon, 24 Jul 2017 04:18:25 +0000 (00:18 -0400)]
bpo-30993: IDLE - Improve configdialog font page and tests. (#2831)

In configdialog: Document causal pathways in create_font_tab docstring.  Simplify some attribute names. Move set_samples calls to var_changed_font (idea from Cheryl Sabella).  Move related functions to positions after the create widgets function.

In test_configdialog: Fix test_font_set so not order dependent.  Fix renamed test_indent_scale so it tests the widget.  Adjust tests for movement of set_samples call.  Add tests for load functions.  Put all font tests in one class and tab indent tests in another.  Except for two lines, these tests completely cover the related functions.

7 years agobpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)
Eli Boyarski [Mon, 24 Jul 2017 00:39:07 +0000 (03:39 +0300)]
bpo-30456: Clarify example for duplicates in second argument of isinstance (GH-1699)

7 years agoMac installer build now needs venv for docs build (#2828)
Ned Deily [Sun, 23 Jul 2017 20:39:54 +0000 (16:39 -0400)]
Mac installer build now needs venv for docs build (#2828)

7 years agobpo-30993: IDLE - Improve configdialog font page and tests. (#2818)
Terry Jan Reedy [Sun, 23 Jul 2017 16:20:08 +0000 (12:20 -0400)]
bpo-30993: IDLE - Improve configdialog font page and tests.  (#2818)

* Document causal event pathways in docstring.
* Simplify some attribute names.
* Rename test_bold_toggle_set_samples to make test_font_set fail.
* Fix test_font_set so not order dependent.
* Fix renamed test_indent_scale so it tests the widget.

7 years agobpo-30919: shared memory allocation performance regression in multiprocessing (#2708)
Antoine Pitrou [Sun, 23 Jul 2017 11:05:26 +0000 (13:05 +0200)]
bpo-30919: shared memory allocation performance regression in multiprocessing (#2708)

* Fix #30919: shared memory allocation performance regression in multiprocessing

* Change strategy for Arena directory choice

* Add blurb

7 years agobpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command (#1214)
Dong-hee Na [Sat, 22 Jul 2017 17:20:22 +0000 (02:20 +0900)]
bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command (#1214)

7 years agobpo-26732: fix too many fds in processes started with the "forkserver" method (#2813)
Antoine Pitrou [Sat, 22 Jul 2017 11:22:54 +0000 (13:22 +0200)]
bpo-26732: fix too many fds in processes started with the "forkserver" method (#2813)

* bpo-26732: fix too many fds in processes started with the "forkserver" method

A child process would inherit as many fds as the number of still-running children.

* Add blurb and test comment

7 years agobpo-30981: IDLE: Augment one configdialog font page test (#2810)
Terry Jan Reedy [Sat, 22 Jul 2017 04:36:13 +0000 (00:36 -0400)]
bpo-30981: IDLE: Augment one configdialog font page test (#2810)

Remove broken test of bold_toggle and test it along with its command, set_samples.
This has been incorporated into 3.6 backport PR-2796.

7 years agoFix test failure without ctypes (#2802)
Antoine Pitrou [Fri, 21 Jul 2017 11:24:05 +0000 (13:24 +0200)]
Fix test failure without ctypes (#2802)

7 years agobpo-30891: Fix again importlib _find_and_load() (#2665)
Victor Stinner [Fri, 21 Jul 2017 11:00:46 +0000 (13:00 +0200)]
bpo-30891: Fix again importlib _find_and_load() (#2665)

Use sys.modules.get() in the "with _ModuleLockManager(name):" block
to protect the dictionary key with the module lock and use an atomic
get to prevent race condition.

Remove also _bootstrap._POPULATE since it was unused
(_bootstrap_external now has its own _POPULATE object), add a new
_SENTINEL object instead.

7 years agobpo-19896: Add typecodes 'q' and 'Q' to multiprocessing.sharedctypes (#2741)
Gareth Rees [Fri, 21 Jul 2017 10:35:33 +0000 (11:35 +0100)]
bpo-19896: Add typecodes 'q' and 'Q' to multiprocessing.sharedctypes (#2741)

* bpo-19896: Add typcodes 'q' and 'Q' to multiprocessing.sharedctypes. Patch by Antony Lee.

* Add NEWS entry.

* Slightly tweak NEWS entry

Make it clear this is more of a fix rather than a new feature.

7 years agobpo-30981: temporarity skip failing IDLE test class (#2798)
Terry Jan Reedy [Fri, 21 Jul 2017 07:47:01 +0000 (03:47 -0400)]
bpo-30981: temporarity skip failing IDLE test class (#2798)

7 years agobpo-30981: IDLE -- Add more configdialog font page tests. (#2794)
Terry Jan Reedy [Fri, 21 Jul 2017 06:20:46 +0000 (02:20 -0400)]
bpo-30981: IDLE -- Add more configdialog font page tests.  (#2794)

7 years agobpo-28523: IDLE: Use 'color' instead of 'colour'. (#2787)
Terry Jan Reedy [Fri, 21 Jul 2017 05:06:58 +0000 (01:06 -0400)]
bpo-28523: IDLE: Use 'color' instead of 'colour'. (#2787)

7 years agobpo-30964: Mention ensurepip in package installation docs (GH-2786)
Nicholas [Fri, 21 Jul 2017 03:51:54 +0000 (20:51 -0700)]
bpo-30964: Mention ensurepip in package installation docs (GH-2786)

Adds a new 'Pip not installed' section that covers
running `ensurepip` manually, and also references
the relevant section of the Python Packaging User
Guide.

7 years agobpo-30822: Fix testing of datetime module. (#2530) (#2783)
Utkarsh Upadhyay [Fri, 21 Jul 2017 00:14:54 +0000 (02:14 +0200)]
bpo-30822: Fix testing of datetime module. (#2530) (#2783)

Only C implementation was tested.

7 years agoFix typo in Turtle Docs: yingyang -> yinyang (GH-2770)
靳阳 [Thu, 20 Jul 2017 13:58:40 +0000 (21:58 +0800)]
Fix typo in Turtle Docs: yingyang -> yinyang (GH-2770)