[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7432 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30345] test_gdb fails on Python 3.6 when built with LTO+PGO

2018-06-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +7431 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31774] [RFE] tarfile: add an option to change the "blocking factor"

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: Extract of tartest.py: tarfile.open(name=_tmp_tar, mode='w', bufsize=EXPECTED_SIZE) Hum, the bufsize argument only applies to the "...|compression" modes (ex: "w|gz"). Moreover, it shouldn't change the size of the tarfile, it only changes the size of parame

[issue33716] test_concurrent_futures.test_crash() failed on x86 Windows7 3.7

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: Recent failure (fail then pass): http://buildbot.python.org/all/#/builders/58/builds/1031 == FAIL: test_crash (test.test_concurrent_futures.ProcessPoolSpawnExecutorDeadlockTest) -

[issue33915] VSTS: Initialize phase: failed

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-33782 "VSTS Windows-PR: internal error". -- ___ Python tracker ___ ___ Python-bugs-l

[issue33915] VSTS: Initialize phase: failed

2018-06-20 Thread STINNER Victor
New submission from STINNER Victor : Just one example: VSTS: Linux-PR — Linux-PR_20180620.24 failed: https://python.visualstudio.com/cpython/cpython%20Team/_build/results?buildId=9&view=logs "Initialize phase: failed" """ 2018-06-20T12:20:59.9720705Z ##[section]Starting: Expand phase phase

[issue33742] Unsafe memory access in PyStructSequence_InitType

2018-06-20 Thread Xiang Zhang
Xiang Zhang added the comment: I don't think here is a problem. It crashes because you preallocate the type object in a wrong way. You should not just does a malloc and then passes it to the API. In this way, you are able to crash many APIs. For example, malloc a dictobject and then pass it

[issue33499] Environment variable to set alternate location for pycache tree

2018-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 16eb3bcdb22be4d82dc597b92b7154fcb11c6479 by Nick Coghlan in branch 'master': bpo-33499: PYTHONPYCACHEPREFIX What's New entry (GH-7749) https://github.com/python/cpython/commit/16eb3bcdb22be4d82dc597b92b7154fcb11c6479 --

[issue33468] Add try-finally contextlib.contextmanager example

2018-06-20 Thread Nick Coghlan
Nick Coghlan added the comment: Right, the HTML example was always a bit cutesy (hence the disclaimer in the header), but it's hard to come up with a good illustrative example that isn't already a native context manager in the standard library. Perhaps it would make sense to change the examp

[issue23224] LZMADecompressor object is only initialized in __init__

2018-06-20 Thread Zackery Spytz
Change by Zackery Spytz : -- nosy: +ZackerySpytz versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue31463] test_multiprocessing_fork hangs test_subprocess

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: Antoine: "Let's take another look at the issue: why does test_subprocess need to know about all child processes, rather than those that were launched during test_subprocess?" It seems like this bug has been fixed by bpo-31178, commit 11045c9d8a21dd9bd182a39

[issue31463] test_multiprocessing_fork hangs test_subprocess

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: Another old (now fixed) issue of test_subprocess: bpo-31173 "test_subprocess: test_child_terminated_in_stopped_state() leaks a zombie process". -- ___ Python tracker __

[issue31463] test_multiprocessing_fork hangs test_subprocess

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: See also the now hopefully fixed bpo-31509 "test_subprocess hangs randomly on AMD64 Windows10 3.x". -- ___ Python tracker ___ __

[issue23224] LZMADecompressor object is only initialized in __init__

2018-06-20 Thread Zackery Spytz
Change by Zackery Spytz : -- pull_requests: +7430 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue31463] test_multiprocessing_fork hangs test_subprocess

2018-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I would like to work on this issue -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue31463] test_multiprocessing_fork hangs test_subprocess

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: Last time I was bitten by waitpid(): commit 11045c9d8a21dd9bd182a3939189db02815f9783 Author: Victor Stinner Date: Thu Oct 5 06:32:53 2017 -0700 bpo-31178: Mock os.waitpid() in test_subprocess (#3896) Fix test_exception_errpipe_bad_data() and t

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: > I would like to work on this issue and on issue31463 Say it on issue31463 as well on that case ;-) -- ___ Python tracker ___ _

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I would like to work on this issue and on issue31463 -- ___ Python tracker ___ ___ Python-

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-06-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I would like to work on this issue and on bpo31463 -- ___ Python tracker ___ ___ Python-bu

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-06-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- Removed message: https://bugs.python.org/msg320061 ___ Python tracker ___ ___ Python-bugs-list

[issue33914] test_gdb fails for Python 2.7.15

2018-06-20 Thread Vibhuti
New submission from Vibhuti : == FAIL: test_down_at_bottom (test.test_gdb.StackNavigationTests) Verify handling of "py-down" at the bottom of the stack -- Trace

[issue33913] test_multiprocessing_spawn random failures on x86 Windows7 3.6

2018-06-20 Thread STINNER Victor
New submission from STINNER Victor : http://buildbot.python.org/all/#/builders/90/builds/414 == FAIL: test_ipython_workaround (test.test_multiprocessing_main_handling.SpawnCmdLineTest) -

[issue30317] test_timeout() of test_multiprocessing_spawn.WithManagerTestBarrier fails randomly on x86 Windows7 3.x buildbot

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/#/builders/90/builds/414 == FAIL: test_timeout (test.test_multiprocessing_spawn.WithThreadsTestQueue) ---

[issue33735] test_multiprocessing_spawn leaked [1, 2, 1] memory blocks on AMD64 Windows8.1 Refleaks 3.7

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: > http://buildbot.python.org/all/#/builders/132/builds/154 That's the AMD64 Windows8.1 Refleaks 3.7 buildbot. > bpo-33853 has been marked as a duplicate this bug. Copy of Pablo's message: The test `test_multiprocessing_spawn` is leaking memory according to

[issue33716] test_concurrent_futures.test_crash() failed on x86 Windows7 3.7

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: Hum, I guess that the fix is to use a timeout of 5 minutes instead of 1 minute. It's ok if the buildbot is slow. Moreover, it would be interesting to replace time.time() with time.monotonic(). -- ___ Python tracke

[issue25094] [EASY][Windows] test_tools fails on Windows when passing

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: > I had no failures on 3.4.3. How do you run the test suite? The test fails when you pass option like -j0: python -m test -j0 test_tools. IMHO the fix is trivial: monkey-patch sys.argv using support.swap_attr(sys, 'argv', ...). (I didn't try the fix).

[issue33719] Test failures on Python 3.7 beta 5 and Windows 10

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: test test_tools failed -- Traceback (most recent call last): (...) optparse.BadOptionError: no such option: --slaveargs Ah, it's a known and old issue: bpo-25094. -- ___ Python tracker

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: > Thanks. Agreed this should stay open, but it is blocked on a compiler fix. Do you want to have a different limit depending on the compiler and the compiler version? I'm not sure that it's worth it. I'm happy with the heuristic "use lower limit on Windows".

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-06-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> pablogsal nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue31463] test_multiprocessing_fork hangs test_subprocess

2018-06-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> pablogsal nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue33733] Add utilities to get/set pipe and socket buffer sizes?

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: > Note that in my experience, socket systems treat the buffer sizes as more > like... rough guidelines. Oh. Now I'm scared. I succeeded to fix bpo-33532 and bpo-33353, so I no longer need this issue. Since it seems hard to have a portable and *reliable* beh

[issue33532] test_multiprocessing_forkserver: TestIgnoreEINTR.test_ignore() fails on Travis CI

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: It didn't see this super annoying failure recently, so it seems like it has been fixed for real. Great! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33912] [EASY] test_warnings: test_exec_filename() fails when run with -Werror

2018-06-20 Thread Thomas Kluyver
Thomas Kluyver added the comment: Yes, this should be easy. I misunderstood how to use the catch_warnings context manager. I thought that catch_warnings itself set up the warnings filters you need. You actually need to do that with a separate call inside the with block, as shown here: https

[issue33911] [EASY] test_docxmlrpc fails when run with -Werror

2018-06-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue33782] VSTS Windows-PR: internal error

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: Steve: hi! Any update on the Microsoft side? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue33912] [EASY] test_warnings: test_exec_filename() fails when run with -Werror

2018-06-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +takluyver ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue33746] testRegisterResult in test_unittest fails in verbose mode

2018-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue33746] testRegisterResult in test_unittest fails in verbose mode

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: I tested manually: "./python -m test -v test_unittest" pass in 2.7, 3.6, 3.7 and master. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33912] [EASY] test_warnings: test_exec_filename() fails when run with -Werror

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: I consider that this issue is easy, core developers/long time contriubtors: please don't fix it, but explain how to fix it and let a newcomer to fix it! https://mail.python.org/pipermail/python-committers/2017-June/004564.html --

[issue33375] warnings: get filename from frame.f_code.co_filename

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: This change introduced a regression: bpo-33912 "[EASY] test_warnings: test_exec_filename() fails when run with -Werror". I consider that it's an easy issue, please don't fix it, but explain how to fix it and let a newcomer to fix it! https://mail.python.org/

[issue33912] [EASY] test_warnings: test_exec_filename() fails when run with -Werror

2018-06-20 Thread STINNER Victor
New submission from STINNER Victor : vstinner@apu$ ./python -W error -m test -v test_warnings == ERROR: test_exec_filename (test.test_warnings.CWarnTests) -- T

[issue33911] [EASY] test_docxmlrpc fails when run with -Werror

2018-06-20 Thread STINNER Victor
New submission from STINNER Victor : Ok, but notice the two warnings: vstinner@apu$ ./python -m test test_docxmlrpc Run tests sequentially 0:00:00 load avg: 1.19 [1/1] test_docxmlrpc /home/vstinner/prog/python/master/Lib/xmlrpc/server.py:791: DeprecationWarning: `formatargspec` is deprecated s

[issue33911] [EASY] test_docxmlrpc fails when run with -Werror

2018-06-20 Thread STINNER Victor
Change by STINNER Victor : -- components: +Tests, XML ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue33746] testRegisterResult in test_unittest fails in verbose mode

2018-06-20 Thread miss-islington
miss-islington added the comment: New changeset 2b7574213987ddcbc5e83c6798668c7d600b6608 by Miss Islington (bot) in branch '3.6': bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) https://github.com/python/cpython/commit/2b7574213987ddcbc5e83c6798668c7d600b6608 ---

[issue33746] testRegisterResult in test_unittest fails in verbose mode

2018-06-20 Thread miss-islington
miss-islington added the comment: New changeset 232add02418f0b061881501e4f2d1241a2404f5d by Miss Islington (bot) in branch '3.7': bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) https://github.com/python/cpython/commit/232add02418f0b061881501e4f2d1241a2404f5d ---

[issue33746] testRegisterResult in test_unittest fails in verbose mode

2018-06-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +7428 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33746] testRegisterResult in test_unittest fails in verbose mode

2018-06-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +7429 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33746] testRegisterResult in test_unittest fails in verbose mode

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844 by Victor Stinner in branch 'master': bpo-33746: Fix test_unittest.testRegisterResult() in verbose mode (GH-7799) https://github.com/python/cpython/commit/fd8fbce495c32b0cbc13f71a8e9d4eec6f48c844 --

[issue33910] update random.Random 's parameter to have a proper name.

2018-06-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-20 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker ___

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset f2918881b7b2e13ed1091dad482aec2382358bcb by Victor Stinner in branch '2.7': bpo-33901: Fix test_gdbm for gdbm 1.15 (GH-7798) (GH-7818) https://github.com/python/cpython/commit/f2918881b7b2e13ed1091dad482aec2382358bcb -- __

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-20 Thread STINNER Victor
STINNER Victor added the comment: Oh, the test also fails on 2.7: x86-64 High Sierra 2.7 http://buildbot.python.org/all/#builders/140/builds/25 I backported the fix to 2.7: PR 7818. -- resolution: fixed -> status: closed -> open ___ Python tracke

[issue33910] update random.Random 's parameter to have a proper name.

2018-06-20 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +7427 stage: -> patch review ___ Python tracker ___ ___ Python-b

[issue33901] test_dbm_gnu.test_reorganize() failed on x86-64 High Sierra 3.x

2018-06-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7426 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33910] update random.Random 's parameter to have a proper name.

2018-06-20 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : Docs of random.Random always refer to it with Random([seed]) (`lib/random.py`), tough the parameter is actually named `x` making it : - non obvious what it does. - hard to search for. - hard to remember when using kwargs. Obviously changing the nam

[issue33783] Use proper class markup for random.Random docs

2018-06-20 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +7425 stage: needs patch -> patch review ___ Python tracker ___ _

[issue33909] PyObject_CallFinalizerFromDealloc is not referenced in any documentation

2018-06-20 Thread Eric Wieser
New submission from Eric Wieser : PEP 442 states that: > Two new C API functions are provided to ease calling of tp_finalize, > especially from custom deallocators. But it does not give the names of these functions, nor do any python docs I can discover. >From grepping for tp_finalize, it s

[issue33468] Add try-finally contextlib.contextmanager example

2018-06-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It doesn't look as a good example. It is not always good to write a closing tag if an error was occurred while write an inner content. In many cases it is better to stop writing after error. -- nosy: +serhiy.storchaka _

[issue33468] Add try-finally contextlib.contextmanager example

2018-06-20 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +7424 stage: needs patch -> patch review ___ Python tracker ___ _

[issue30811] A venv created and activated from within a virtualenv uses the outer virtualenv's site-packages rather than its own.

2018-06-20 Thread Vinay Sajip
Vinay Sajip added the comment: I'm closing this, as it's not a bug in the venv module. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker _

[issue33904] IDLE: In rstrip, rename class RstripExtension as Rstrip

2018-06-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +7423 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33904] IDLE: In rstrip, rename class RstripExtension as Rstrip

2018-06-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +7422 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30411] git doesn't support "-C" args under 1.8.5 occurs in configure.ac

2018-06-20 Thread Xiang Zhang
Xiang Zhang added the comment: Encounter the same problem on centos7 and git version is 1.8.3. Instead of checking the version to use -C option, maybe we could just use --git-dir for the same purpose? --- a/configure +++ b/configure @@ -2749,9 +2749,9 @@ HAS_GIT=no-repository fi if test $H

[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-20 Thread Tal Einat
Tal Einat added the comment: >> If so, should it be possible for two tooltips to be shown at once, one for >> the mouse hover and one for the keyboard focus? > If we have different popup contents, I think 1 at a time would be fine. Consider the following example: A window with two buttons, e

[issue33906] IDLE: rename windows.py as window.py

2018-06-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: -7421 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33839] IDLE tooltips.py: refactor and add docstrings and tests

2018-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: > if: versus try: The latter is faster if try: succeeds. On the other hand, we > could make the if: fail by mocking it. Since there is no except: or else: > code to test, it hardly seems worth it. A low priority item. Generalizing 'show calltip': Great ide

<    1   2