| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
| |
Fix test_forkserver_sigkill() of test_multiprocessing_forkserver:
give more time to the first child process to complete, double the
sleep in the parent process.
Reduce also the child process sleep from 1000 ms to 500 ms, to not change
the total duration of the test.
(cherry picked from commit 07888e1cce89e9bb7dc501e287b4cb126e01c378)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
|
|
| |
During buffered read, use a list followed by join instead of extending a bytes object.
This is how it was done before but changed in commit b506dc32c1a.
(cherry picked from commit 12a08c47601cadea8e7d3808502cdbcca87b2ce2)
Co-authored-by: hajoscher <hajoscher@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit b4588c2fffbda91e4c2f0cf2b0fc3d14def95608)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
|
|
|
|
|
|
|
|
|
| |
(GH-7918) (GH-8069)
PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
(cherry picked from commit d8cba5d16f1333fd625726fc72e66afbd45b8d00)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
|
|
| |
(GH-8042) (GH-8067)
(cherry picked from commit 831c29721dcb1b768c6315a4b8a4059c4c97ee8b)
Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
|
|
|
|
|
|
|
|
| |
The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module.
* Correct the arguments passed to the Opera Browser when opening a new URL.
(cherry picked from commit 3cf1f154edb88c108877729ea09f4ac174697fea)
Co-authored-by: Bumsik Kim <k.bumsik@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When hunting memory leaks using -R 3:3, test_imap_unordered() of
test_multiprocessing leaks randomly a few memory blocks. It is a
false alarm: when testing using -R 3:20 for example, no leak is
detected.
Modify test_imap_unordered() to be closer to test_imap():
* Only test 10 numbers instead of 1000: it's a pool of 4 processes, so
10 is enough to test at least one number per process
* Use chunksize=100 instead of chunksize=53 to mimick test_imap()
(cherry picked from commit 23401fb960bb94e6ea62d2999527968d53d3fc65)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
|
|
| |
The line-length limit is not needed because the pages appear in a separate app rather
than on a browser tab. It can also interact badly with the DPI setting.
(cherry picked from commit d824ca7f4df9b5f77cf02490b0e98c2408e21fee)
Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
|
|
|
|
|
|
|
| |
(GH-8008). (GH-8045)
(cherry picked from commit 087570af6d5d39b51bdd5e660a53903960e58678)
Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit fe524df37cf3a8d4de291e7fc48257f96ff91bbe)
Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
They can be exposed when some C API calls fail due to lack of
memory.
* Failed Py_BuildValue() could cause an assertion error in the
following TextIOWrapper.tell().
* input_chunk could be decrefed twice in TextIOWrapper.seek()
after failed Py_BuildValue().
* initvalue could leak in StringIO.__getstate__() after failed
PyDict_Copy().
(cherry picked from commit fdb5a50ef34f7951c3b01eb77b1359725a9ad670)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* `flags` is indeed deprecated, but there is a validation on its value for
backwards compatibility reasons. This adds mention of this in the docs.
* The docs say that `sizehint` is deprecated and ignored, but it is still
used when `epoll_create1()` is unavailable. This adds mention of this in
the docs.
* `sizehint=-1` is acceptable again, and is replaced with `FD_SETSIZE-1`.
This is needed to have a default value available at the Python level,
since `FD_SETSIZE` is not exposed to Python. (see: bpo-31938)
* Reject `sizehint=0` since it is invalid to pass on to `epoll_create()`.
The relevant tests have also been updated.
(cherry picked from commit 0cdf5f42898350261c5ff65d96334e736130780f)
|
|
|
|
|
|
|
| |
Fix passing lists and tuples of strings containing special characters
'"', '\\', '{', '}' and '\n' as options to tkinter.ttk widgets.
(cherry picked from commit 5bb5bbfca847524bab5f2368bdb48eedf5dba74f)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
|
|
| |
(GH-3918). (GH-8012)
(cherry picked from commit 23db935bcf258657682e66464bf8512def8af830)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit bda9c3eae3ad16e43145599ac6359bfdcaf1fd4a)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
|
|
|
|
|
|
|
| |
The 'wikipedia' example is now 'rosette', describing what it draws.
The 'penrose' print output is reduced. The 'tree' '1024'
output is eliminated.
(cherry picked from commit 891a1f86d415779cf67ca23e626a868e586feb05)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
| |
(cherry picked from commit d904c238ca3551750cb97d15d827c3e525970867)
Co-authored-by: Yury Selivanov <yury@magic.io>
|
|
|
|
|
| |
(cherry picked from commit 9b9d58f0d88b338eb8d2ae0da5cd91d60d1b0e39)
Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 62b6cea6b843076cfd6631eccd9347e8c3dd9458)
Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
|
| |
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Increase timeouts from 10 seconds to 1 minute.
(cherry picked from commit 492572715aa0f4ddab51f979f7f56465c762227c)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
bpo-30339, bpo-33913:
* Increase timeout from 10 seconds to 1 minute in
test_source_main_skipped_in_children source of
test_multiprocessing_main_handling.
* Replace time.time() with time.monotonic().
* On timeout, include the duration in the error message.
(cherry picked from commit 64737e9ae2081e529935ecf07f44e89f362d1c4b)
|
| |
| |
| |
| |
| |
| |
| |
| | |
test_mymanager_context() now also accepts -SIGTERM as an expected
exitcode for the manager process. The process is killed with SIGTERM
if it takes longer than 1 second to stop.
(cherry picked from commit fbd7172325e6ce55b6d5d3d7603e4c1c8a219cb8)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
| |
| |
| |
| |
| |
| | |
Handle subnormal weights for choices()
(cherry picked from commit ddf7171911e117aa7ad4b0f9ded4f0c3a4ca0fec)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Tolerate a different of 50 ms, instead of just 30 ms, in
test_timeout() of multiprocessing tests. This change should fix such
test failure on Windows:
FAIL: test_timeout (test.test_multiprocessing_spawn.WithProcessesTestQueue)
Traceback (most recent call last):
File "lib\test\_test_multiprocessing.py", line 753, in test_timeout
self.assertGreaterEqual(delta, 0.170)
AssertionError: 0.16138982772827148 not greater than or equal to 0.17
(cherry picked from commit f15f66d275d1166839312c9ff3a67c00b486c7d6)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Import pyshell first in htest to call SetProcessDpiAwareness on Windows
before tkinter.Tk() is called for the htest. Apparently, 'root.destroy()'
undoes a previous 'root = Tk()'. Since IDLE unittests always destroy roots,
a unittest before an htest does not require anything more to work right.
Since part of the purpose of human-viewed tests is to determine that
widgets look right, it is important that they look the same for testing
as when running IDLE.
(cherry picked from commit 3c8043d8fac4c0d05c0ba9e4e555e2f3165f2fe0)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
| |
| |
| |
| |
| | |
it's better to refer to PEP with `pep` role in reStructuredText. It also links to the PEP page.
(cherry picked from commit df748c20dabcec5a6e89e0dd74fff21110f8755a)
Co-authored-by: Behzad B. Mokhtari <35877268+perplexionist@users.noreply.github.com>
|
| | |
|
| |
| |
| |
| |
| | |
(cherry picked from commit 4e21100fa7bf66e0b32146d3f46ae16afc73fee1)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* bpo-33718: regrtest: use format_duration() to display failed tests (GH-7686)
* Enhance also format_duration(): work on integers and rounds towards
+infinity (math.ceil).
* Write unit tests on format_duration()
(cherry picked from commit 4ffe9c2b251f6e027b26250b7a2618e78d4edd22)
* bpo-33873: regrtest: Add warning on -R 1:3 (GH-7736)
regrtest: Add warning when using less than 3 warmup runs like -R 1:3.
(cherry picked from commit cac4fef8860e66a9da67d09762f5b614b9471a12)
* bpo-33873: Fix bug in `runtest.py` and add checks for invalid `-R` parameters (GH-7735)
Fix bug in `Lib/test/libregrtest/runtest.py` that makes running tests an extra time than the specified number of runs.
Add check for invalid --huntrleaks/-R parameters.
(cherry picked from commit 58ed7307ea0b5c5aa052291ebc3030f314f938d8)
(cherry picked from commit d1f9481b7a2d31c40fca1347ef99d819eb656ce7)
|
| |
| |
| |
| |
| |
| | |
These should have been included in PR 7836.
(cherry picked from commit 42397731d7ba8bdf63025d48008d133cb2070229)
Co-authored-by: Mark Roseman <mark@markroseman.com>
|
| |
| |
| |
| |
| | |
(GH-7587) (GH-7907)
(cherry picked from commit fdd6e0bf18517c3dc5e24c48fbfe890229fad1b5)
|
| |
| |
| |
| |
| | |
(cherry picked from commit 4a6e746079441d18c30e3c4d014f106faaf7792f)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(GH-7899)
Adds references to info about file modes, `time.strftime()`, string formatting
syntaxes, and logging levels.
(cherry picked from commit a8ddf85a84364d2c660e6670a7e06621993d1fdc)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This avoids a failure in at least one case when running only a single
test method rather than all tests in the module.
The issue came up when testing the following on Windows 10 Pro 64-bit:
HighPageTest.test_highlight_target_text_mouse
(cherry picked from commit 2af9f5d334eeca588eeee87d177faf0012c63a03)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
| |
| |
| | |
(cherry picked from commit 3f197f94d67be25d5489e14f2f06b4a00e818747)
|
| |
| |
| |
| |
| |
| | |
Directly executed pyc files were being kept open longer than necessary.
(cherry picked from commit ea737751b10fff752aafed0231e8a02b82ba365d)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
|
| |
| |
| |
| |
| |
| |
| | |
In configdialog, the custom tabbedpages widget was replaced
by ttk.notebook several months ago.
(cherry picked from commit 5ae70f66ff1949eec35ff207c97cfe572c4e74c8)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
| |
| |
| |
| | |
(cherry picked from commit 38cf49bf695903ac7a8516bca6bbb6b32d935bb5)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| |
| |
| |
| |
| |
| | |
bz2, lzma: When Decompressor.__init__() is called twice, free the old
lock to not leak memory.
(cherry picked from commit 9b7cf757213cf4d7ae1d436d86ad53f5ba362d55)
|
| |
| |
| |
| |
| |
| | |
The statement is true for Windows (and macOS) also.
(cherry picked from commit c9d43c702a53804c23ecb22a0dbf6a47c804d2b1)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
|
| | |
|
| |
| |
| | |
Add -g to LDFLAGS when compiling with LTO to get debug symbols.
|
| |
| |
| |
| |
| |
| | |
Increases coverage by 44%.
(cherry picked from commit bcd3a1a18d841338f57c39f6a7de8cf14d0c3e03)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
| |
| |
| |
| | |
(cherry picked from commit 940ae608566fd4446ff92a22705f646cde1d087c)
Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
|
| |
| |
| |
| |
| |
| |
| | |
Every other menudef key is the lowercase version of the
corresponding main menu entry (in this case, 'Window').
(cherry picked from commit 33c7420e7dd9d8e5b2aa15e98da6291bab6fcf33)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
| |
| |
| |
| |
| |
| |
| | |
Match Window on the main menu and remove last plural module name.
Change imports, test, and attribute references to match new name.
(cherry picked from commit a361e89d5ae3daefe9e8b8a7e889cd2ad8c45b77)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|