48455e2 | Benjamin Peterson | 26 August 2017, 18:17:02 UTC | update pydoc topics | 26 August 2017, 18:17:02 UTC |
a944079 | Benjamin Peterson | 26 August 2017, 18:13:23 UTC | coalesce blurbs for 2.7.14rc1 | 26 August 2017, 18:13:23 UTC |
02e0367 | Victor Stinner | 22 August 2017, 14:51:20 UTC | bpo-31258: test_urllib2_localnet uses addCleanup(server.stop) (#3184) Use self.addCleanup(self.server.stop) to stop the HTTP server. Some tests didn't stop the server like test_https(). | 22 August 2017, 14:51:20 UTC |
1460ce5 | Victor Stinner | 22 August 2017, 14:51:09 UTC | bpo-31258: test_signal: call waitpid() to prevent zombie process (#3183) | 22 August 2017, 14:51:09 UTC |
cce1cb9 | Victor Stinner | 22 August 2017, 01:40:26 UTC | bpo-30871: Add test.pythoninfo (#3174) (#3175) * bpo-30871: Add test.pythoninfo (#3075) * Add Lib/test/pythoninfo.py: script collecting various informations about Python to help debugging test failures. * regrtest: remove sys.hash_info and sys.flags from header. * Travis CI, Appveyor: run pythoninfo before tests (cherry picked from commit b907abc88589f7bea52c5afe172ececc6edcda70) * bpo-30871: pythoninfo: add expat and _decimal (#3121) * bpo-30871: pythoninfo: add expat and _decimal * Remove _decimal.__version__ The string is hardcoded, not really interesting. (cherry picked from commit f6ebd838f00b4c211c72d85ee49749e910cd3afe) * bpo-30871: Add "make pythoninfo" (#3120) (cherry picked from commit a3a01a2fceab2188b282ab9911f79c99a4c32273) * bpo-30871: pythoninfo: more sys, os, time data (#3130) * bpo-30871: pythoninfo: more sys, os, time data PythonInfo now converts types other than intger to string by default. * fix typo (cherry picked from commit ad7eaed54382b346784e51a6f0122ce81e8842b5) * bpo-31231: Fix pythoninfo in Travis config (#3134) bpo-31231, bpo-30871: Replace "./python -m test.pythoninfo" with "make pythoninfo", since macOS uses ./python.exe. (cherry picked from commit 92b1f90143286385c0ff5be98d3721b90580a912) (cherry picked from commit 29d007bb670b486788f73c2d742b0ad0b679ff13) | 22 August 2017, 01:40:26 UTC |
0fbac70 | Victor Stinner | 21 August 2017, 21:57:06 UTC | regrtest: fix test to choose if header should be displayed (#3172) Check "tests" before its value is replaced. | 21 August 2017, 21:57:06 UTC |
02d4292 | Victor Stinner | 21 August 2017, 16:01:11 UTC | bpo-30263: regrtest: add system load average (#3165) Add the CPU count in the header. | 21 August 2017, 16:01:11 UTC |
ec4ab09 | Victor Stinner | 18 August 2017, 23:06:45 UTC | bpo-30947: Update libexpat from 2.2.1 to 2.2.3 (#3106) (#3145) * bpo-30947: Update libexpat from 2.2.1 to 2.2.3 * Add NEWS entry * Add new loadlibrary.c * expat_external.h: restore include "pyexpatns.h" * PCbuild: add expat/loadlibrary.c * Define XML_POOR_ENTROPY to compile expat Python 2.7 backport: add expat/loadlibrary.c to PC/VS9.0/ project files (_elementtree and pyexpat). (cherry picked from commit 93d0cb58b4da2a88c56f472c6c19491cc7a390df) | 18 August 2017, 23:06:45 UTC |
5e006aa | Victor Stinner | 18 August 2017, 22:50:15 UTC | gitignore: add more rules from master for Windows (#3148) | 18 August 2017, 22:50:15 UTC |
2281c04 | Mariatta | 18 August 2017, 13:22:32 UTC | Fix broken `Show Source` links on documentation pages (GH-3113) (GH-3128) The `Show Source` was broken because of a change made in sphinx 1.5.1 In Sphinx 1.4.9, the sourcename was "index.txt". In Sphinx 1.5.1+, it is now "index.rst.txt". (cherry picked from commit b9ff498793611d1c6a9b99df464812931a1e2d69) | 18 August 2017, 13:22:32 UTC |
d45cb04 | Victor Stinner | 17 August 2017, 15:13:01 UTC | [2.7] bpo-31221: patchcheck ignores external libraries (#3109) (#3118) * bpo-31221: patchcheck ignores external libraries (#3109) Tools/scripts/patchcheck.py now ignores changes in directories which are copies of external libraries: * Modules/_ctypes/libffi_msvc/ * Modules/_ctypes/libffi_osx/ * Modules/_decimal/libmpdec/ * Modules/expat/ * Modules/zlib/ Drop also support for Mercurial, since CPython migrated to Git. Exclude also libmpdec patchcheck: exclude also libffi_osx and libffi_msvc (cherry picked from commit 4a347ce426fe7381885703d9074d7a6b3aeb2f2b) * Exclude also Modules/_ctypes/libffi on Python 2.7 * Remove _decimal/libmpdec, not in Python 2.7 | 17 August 2017, 15:13:01 UTC |
3cc46bb | Julien Palard | 17 August 2017, 14:37:56 UTC | Update the language selection in the docs language switch. (GH-3114) (#3117) Change the option for `Français` into `French` to be consistent with the other language selections that are already in English. (cherry picked from commit b616b972999cdd5fe54ef8a43c131a27ca538dee) | 17 August 2017, 14:37:56 UTC |
883520a | Victor Stinner | 16 August 2017, 11:14:40 UTC | bpo-31069, test_multiprocessing: Fix dangling process (#3103) (#3105) Fix a warning about dangling processes in test_rapid_restart() of _test_multiprocessing: join the process. (cherry picked from commit 17657bb9458ff8f8804b7637d61686a68f4b9471) | 16 August 2017, 11:14:40 UTC |
05b7d9c | Christian Heimes | 15 August 2017, 08:55:03 UTC | [2.7] bpo-30714: ALPN changes for OpenSSL 1.1.0f (#3094) OpenSSL 1.1.0 to 1.1.0e aborted the handshake when server and client could not agree on a protocol using ALPN. OpenSSL 1.1.0f changed that. The most recent version now behaves like OpenSSL 1.0.2 again. The ALPN callback can pretend to not been set. See https://github.com/openssl/openssl/pull/3158 for more details Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit a5c1bab352671e043645163ca50c5211aa657acd) | 15 August 2017, 08:55:03 UTC |
fe8d9dc | Julien Palard | 13 August 2017, 21:44:51 UTC | bpo-31159: fix language switch regex on unknown yet built languages. … (#3051) (#3081) * 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. (cherry picked from commit 122081deef86174beee965be1207fa46ea23533d) * bpo-31149: Doc: Add Japanese to the language switcher. (#3028) (cherry picked from commit c82b7f332aff606af6c9c163da75f1e86514125e) (cherry picked from commit e8e7fba0b24582959feca9c31f2a72fc0251f83d) | 13 August 2017, 21:44:51 UTC |
504939f | Victor Stinner | 11 August 2017, 15:14:31 UTC | bpo-31067: test_subprocess calls reap_children() (#2931) (#3073) test_subprocess now also calls reap_children() in tearDown(), not only on setUp(). (cherry picked from commit cc42c121eb5346f673247f95dac575aadb77d66c) | 11 August 2017, 15:14:31 UTC |
4dea065 | Victor Stinner | 11 August 2017, 12:38:37 UTC | bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055) (#3071) The current test_child_terminated_in_stopped_state() function test creates a child process which calls ptrace(PTRACE_TRACEME, 0, 0) and then crash (SIGSEGV). The problem is that calling os.waitpid() in the parent process is not enough to close the process: the child process remains alive and so the unit test leaks a child process in a strange state. Closing the child process requires non-trivial code, maybe platform specific. Remove the functional test and replaces it with an unit test which mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to test the WIFSTOPPED() path. (cherry picked from commit 7b7c6dcfff6a35333988a3c74c895ed19dff2e09) | 11 August 2017, 12:38:37 UTC |
1247e2c | Victor Stinner | 10 August 2017, 14:45:38 UTC | [2.7] bpo-31160: Backport reap_children fixes from master to 2.7 (#3063) * bpo-31160: regrtest now reaps child processes (#3044) Add a post_test_cleanup() function which currently only calls support.reap_children(). (cherry picked from commit e3510d74aacc477c30f42f2b941d69689bbc478e) * bpo-31160: test_tempfile: Fix reap_children() warning (#3056) TestRandomNameSequence.test_process_awareness() now calls os.waitpid() to avoid leaking a zombie process. (cherry picked from commit 6c8c2943d996b59a48d331f61f22cbe72933910e) | 10 August 2017, 14:45:38 UTC |
6937908 | Victor Stinner | 10 August 2017, 14:11:29 UTC | PCbuild: downgrade pcbuild.sln to support VS 2010 (#3031) bpo-31133: Downgrade PCbuild/pcbuild.sln from format version 12.00 to 11.00 to support Visual Studio 2010 and newer, not only VS 2013 and newer. | 10 August 2017, 14:11:29 UTC |
425680b | Ammar Askar | 09 August 2017, 14:54:53 UTC | [2.7] bpo-31150: Wait for child process in test_forkinthread to avoid thread reaped warnings (#3042) | 09 August 2017, 14:54:53 UTC |
56e162a | Victor Stinner | 08 August 2017, 17:15:52 UTC | ttk: fix LabeledScale and OptionMenu destroy() method (#3026) 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. | 08 August 2017, 17:15:52 UTC |
245dafc | Julien Palard | 08 August 2017, 12:14:23 UTC | bpo-31045: Language switch (#2652) (#3024) * 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. (cherry picked from commit dff9b5f9d62aa0b23f8a255867d09d11890efd1b) | 08 August 2017, 12:14:23 UTC |
88ffff5 | Shane Harvey | 05 August 2017, 15:03:01 UTC | [2.7] bpo-31107: Fix copyreg mangled slot names calculation. (GH-2989). (#3004) (cherry picked from commit c4c9866064f03646c686d7e08b00aeb203c35c19) | 05 August 2017, 15:03:01 UTC |
5fbb8e3 | Yuan Chao Chou | 04 August 2017, 17:54:27 UTC | Fix a shadow-compatible-local warning (#2182) Change the shadowing naming, 'value' (Python-ast.c:3814), to 'val' to prevent the variables from being misused. | 04 August 2017, 17:54:27 UTC |
dd6e4aa | Subhendu Ghosh | 04 August 2017, 02:00:10 UTC | bpo-27470: Improve doc for commandline -3 option Mention that it warns about features that are significantly changed in Python 3 and can’t be detected using static code analysis. Link to Porting Python 2 Code to Python 3 doc | 04 August 2017, 02:00:10 UTC |
3dd1ccb | Serhiy Storchaka | 02 August 2017, 08:33:33 UTC | bpo-29902: Emit a Py3k deprecation warning when pickling or copying (#2823) some builtin and extension objects that don't support pickling explicitly and are pickled incorrectly by default (like memoryview or staticmethod). | 02 August 2017, 08:33:33 UTC |
956902e | Mariatta | 01 August 2017, 04:34:58 UTC | Remove .mention-bot (GH-2923) (GH-2972) (cherry picked from commit e1e60bd95c376f9b18cbaf9481364281c6cc1bc7) | 01 August 2017, 04:34:58 UTC |
b3c7d37 | Mariatta | 01 August 2017, 02:55:20 UTC | bpo-25910: Update LICENSE (GH-2873) (GH-2969) Use the copy provided in https://bugs.python.org/issue25910GH-msg295200 (cherry picked from commit 8474d87165593bac2bc231287f42c4cff3fd6aaf) | 01 August 2017, 02:55:20 UTC |
3e37f4a | INADA Naoki | 31 July 2017, 17:52:46 UTC | bpo-29519: weakref spewing exceptions during interp finalization (#2958) (cherry pick from 9cd7e17640a49635d1c1f8c2989578a8fc2c1de6) | 31 July 2017, 17:52:46 UTC |
fa90179 | Mariatta | 29 July 2017, 02:55:04 UTC | Fix trivial typo in multiprocessing documentation (GH-2930) (GH-2942) (cherry picked from commit 6fcb69dad579cc9a7dc15eabead43b6c37464f8c) | 29 July 2017, 02:55:04 UTC |
c2f7fb6 | Victor Stinner | 27 July 2017, 16:44:43 UTC | [2.7] bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915) (#2918) * 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. (cherry picked from commit 12953ffe12ac781332b384c36b25d12216b1db62) * Fix syntax for Python 2.7 | 27 July 2017, 16:44:43 UTC |
fd6736d | Victor Stinner | 27 July 2017, 16:05:44 UTC | bpo-31028: Fix test_pydoc when run directly (#2864) (#2911) * 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() (cherry picked from commit fd46561167af6cd697191dd7ebb8c2fef5ad6493) | 27 July 2017, 16:05:44 UTC |
29094ce | Nir Soffer | 26 July 2017, 23:24:52 UTC | bpo-30980: Fix double close in asyncore.file_wrapper (#2789) (#2900) * 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 | 26 July 2017, 23:24:52 UTC |
0cba38d | Victor Stinner | 26 July 2017, 15:55:52 UTC | bpo-30778: Skip test_bsddb3 on Windows XP (#2877) * bpo-30778: Skip test_bsddb3 on Windows XP * Fix if, don't skip Windows Vista | 26 July 2017, 15:55:52 UTC |
b65cb8a | Victor Stinner | 26 July 2017, 15:54:42 UTC | bpo-31019: Fix multiprocessing.Process.is_alive() (#2875) (#2882) multiprocessing.Process.is_alive() now removes the process from the _children set if the process completed. The change prevents leaking "dangling" processes. (cherry picked from commit 2db64823c20538a6cfc6033661fab5711d2d4585) | 26 July 2017, 15:54:42 UTC |
ec9a712 | Victor Stinner | 26 July 2017, 15:52:36 UTC | [3.6] bpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027) (#2881) (#2883) * bpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027) multiprocessing.Queue.get() with a timeout now polls its reader in non-blocking mode if it succeeded to aquire the lock but the acquire took longer than the timeout. Co-Authored-By: Grzegorz Grzywacz <grzgrzgrz3@gmail.com> (cherry picked from commit 1b7863c3b6519c6e134c28cab8b8af0dea43e375) * bpo-30595: Increase test_queue_feeder_donot_stop_onexc() timeout (#2148) _test_multiprocessing.test_queue_feeder_donot_stop_onexc() now uses a timeout of 1 second on Queue.get(), instead of 0.1 second, for slow buildbots. (cherry picked from commit 8f6eeaf21cdf4aea25fdefeec814a1ce07453fe9) (cherry picked from commit e42339d3a08a8fde3349722def85d7a8e49899be) | 26 July 2017, 15:52:36 UTC |
e5eae47 | Dong-hee Na | 26 July 2017, 15:50:36 UTC | [2.7] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command (#1214) (#2894) | 26 July 2017, 15:50:36 UTC |
0666d0e | Aditya Hase | 25 July 2017, 20:59:52 UTC | bpo-30304: Improve TestCase.assertMultiLineEqual docs (GH-2847) Mention that TestCase.assertMultiLineEqual method is used by default when comparing Unicode string when comparing Unicode strings with assertEqual. | 25 July 2017, 20:59:52 UTC |
0fc940a | Victor Stinner | 24 July 2017, 11:01:59 UTC | test_bsddb3 tolerates smaller timeout on Windows (#2840) bpo-30850: On Windows, test04_lock_timeout2() now tolerates 50 ms whereas 100 ms is expected. The lock sometimes times out after only 58 ms. Windows clocks have a bad resolution and bad accuracy. | 24 July 2017, 11:01:59 UTC |
123a58b | Ned Deily | 24 July 2017, 08:29:32 UTC | Backport Mac installer fixes for git-based workflow (#2837) | 24 July 2017, 08:29:32 UTC |
8d41de6 | Ned Deily | 24 July 2017, 08:02:29 UTC | bpo-29572: Update macOS installer build to OpenSSL 1.0.2k (#457) (#2836) (cherry picked from commit cfcd76777e35c83d548d8736f5d7dc92fe56d806) | 24 July 2017, 08:02:29 UTC |
82a77d3 | Nicholas | 21 July 2017, 06:29:44 UTC | [2.7] bpo-30964: Mention ensurepip in package installation docs (GH-2795) Adds a new 'Pip not installed' section that covers running `ensurepip` manually, and also references the relevant section of the Python Packaging User Guide. (cherry picked from commit b3527bfefd7a0188d43a2d7515ac6addd97a8202) | 21 July 2017, 06:29:44 UTC |
80ebc43 | Victor Stinner | 21 July 2017, 00:12:14 UTC | bpo-30822: regrtest: fix -u extralargefile (#2788) Fix also regrtest command line parser to allow passing -u extralargefile to run test_zipfile64. | 21 July 2017, 00:12:14 UTC |
598f26b | Mariatta | 20 July 2017, 14:14:46 UTC | [2.7] Fix typo in Turtle Docs: yingyang -> yinyang (GH-2770) (GH-2780) (cherry picked from commit fff2a21057b98732562098e3bdd65980551f0135) | 20 July 2017, 14:14:46 UTC |
3b1e726 | Ned Deily | 20 July 2017, 08:45:42 UTC | Update doc download files size estimates. (#2774) | 20 July 2017, 08:45:42 UTC |
a739000 | Ammar Askar | 19 July 2017, 04:07:49 UTC | [2.7] bpo-30883: Use pythontest.net instead of debian.org in test_urllib2net (GH-2755) | 19 July 2017, 04:07:49 UTC |
3dbe11a | Serhiy Storchaka | 16 July 2017, 04:51:03 UTC | [2.7] bpo-30911: Add tests for bad boolean arguments for accelerated json (GH-2690) (#2729) encoder and decoder. (cherry picked from commit d3aaa2f1496aae0809c9ec9623fa528d3a2c16c2) | 16 July 2017, 04:51:03 UTC |
64a9f3d | Ned Deily | 16 July 2017, 03:06:57 UTC | bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) (#2725) (cherry picked from commit 50f58163a69abe2f35e91044d1df165ee7bdbb42) | 16 July 2017, 03:06:57 UTC |
b6dae2e | Serhiy Storchaka | 13 July 2017, 09:03:18 UTC | [2.7] bpo-30911: Add tests for bad boolean arguments for accelerated json (GH-2690) (#2694) encoder and decoder.. (cherry picked from commit d3aaa2f1496aae0809c9ec9623fa528d3a2c16c2) | 13 July 2017, 09:03:18 UTC |
a948d4f | Xiang Zhang | 12 July 2017, 03:41:33 UTC | Add a missing asterisk in traceback doc to complete formatting (#2675) | 12 July 2017, 03:41:33 UTC |
884c4ca | Segev Finer | 11 July 2017, 22:16:28 UTC | [2.7] bpo-30797: Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670) (#2672) * [2.7] Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670) (cherry picked from commit f52325598e7a9683787d76a42009fc16790a0089) * [2.7] Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670). (cherry picked from commit f52325598e7a9683787d76a42009fc16790a0089) | 11 July 2017, 22:16:28 UTC |
bfa4fe4 | Nir Soffer | 10 July 2017, 21:06:57 UTC | [2.7] bpo-29854: Fix segfault in call_readline() (GH-728) If history-length is set in .inputrc, and the history file is double the history size (or more), history_get(N) returns NULL, and python segfaults. Fix that by checking for NULL return value. It seems that the root cause is incorrect handling of bigger history in readline, but Python should not segfault even if readline returns unexpected value. This issue affects only GNU readline. When using libedit emulation system history size option does not work. This is a backport of the actual fix from master without the test, since the test depends on new run_pty() helper which is not available in 2.7. | 10 July 2017, 21:06:57 UTC |
5d1554a | Kit Sunde | 10 July 2017, 20:05:25 UTC | json Docs: Trivial update to the code example (GH-2465) Replace `dumps` with `json.dumps` | 10 July 2017, 20:05:25 UTC |
f6d6480 | Victor Stinner | 06 July 2017, 08:22:50 UTC | [2.7] bpo-30855: Trying to fix test_use on Windows. (#2586) * bpo-30855: Trying to fix test_use on Windows. Avoid possible weird behavior of WideInt convertion. "winfo id" always returns string hexadecimal representation. (cherry picked from commit b9d672491d5082c541bf267eb7bb99fdc6529324) * bpo-30855: Trying to fix test_use on Windows. (cherry picked from commit 29a2f7c6b38e5a6ed891aa72af38974a1ff2d372) (subTest() removed since it was introduced in Python 3) | 06 July 2017, 08:22:50 UTC |
af6c547 | Mariatta | 06 July 2017, 03:55:30 UTC | Fix trivial typo in json module docstring (GH-2274) (GH-2432) (cherry picked from commit 76c567ee27342d76f631a35c8291b715b2a61f3e) | 06 July 2017, 03:55:30 UTC |
2b92cd3 | Serhiy Storchaka | 05 July 2017, 12:09:36 UTC | bpo-30850: Use specialized assert methods in bsddb tests. (#2584) This provides more information on test failures. | 05 July 2017, 12:09:36 UTC |
8767de2 | Victor Stinner | 05 July 2017, 08:52:06 UTC | bpo-30759: regrtest: list_cases() now unload modules (#2582) list_cases() now unload modules, as the test runner does, to prevent a failure in test_xpickle about test.pickletester loaded after loading test_cpickle: ./python -m test --list-cases test_cpickle test_xpickle | 05 July 2017, 08:52:06 UTC |
668489a | Victor Stinner | 05 July 2017, 08:00:33 UTC | bpo-30759: Copy test_robotparser from master (#2546) Copy Lib/test/test_robotparser.py from master to 2.7 and adapt it for Python 2.7: * Replace urllib.robotparser with robotparser * Adjust HTTPServer import * Replace io.StringIO with StringIO.StringIO * Remove tests on crawl_delay() and request_rate() since these methods were added to Python 3 * Remove subTest() * Add test_main() which explicitly lists all test cases Patch based on the commit 4da0fd06ce49132d5c2e0525c4a31f807690a9ed written by Berker Peksag. Co-Authored-By: Berker Peksag <berker.peksag@gmail.com> | 05 July 2017, 08:00:33 UTC |
3050987 | Victor Stinner | 05 July 2017, 07:16:47 UTC | bpo-30843: regrtest fixes sys.path, restore test.bisect (#2567) * Rename again Lib/test/bisectcmd.py to Lib/test/bisect.py * regrtest now removes '' and Lib/test/ from sys.path * Use absolute import in test_bisect | 05 July 2017, 07:16:47 UTC |
d0ae4be | Segev Finer | 04 July 2017, 18:40:04 UTC | bpo-30726: Add _CRT_SECURE_NO_WARNINGS to _elementtree and pyexpat projects (#2572) | 04 July 2017, 18:40:04 UTC |
28b72ba | Victor Stinner | 04 July 2017, 09:45:04 UTC | bpo-30843: Rename Lib/test/bisect.py to Lib/test/bisectcmd.py (#2563) Revert test_bisect.py change: remove "from __future__ import absolute_import". | 04 July 2017, 09:45:04 UTC |
1fef015 | Victor Stinner | 04 July 2017, 09:36:16 UTC | bpo-29796: test_weakref: Fix collect_in_thread() on Windows (#2553) Sleep 1 ms instead of 0.1 ms to workaround a rounding issue on Windows. On Windows, time.sleep(0.0001) sleeps 0 ms, so collect_in_thread() calls gc.collect() in a loop and tests using this thread takes too long. Sleep 1 ms so time.sleep() sleeps 15.6 ms on Windows. | 04 July 2017, 09:36:16 UTC |
2e5867d | Berker Peksag | 04 July 2017, 06:27:48 UTC | Remove outdated FOX from GUI FAQ (GH-2538) FXpy doesn't have a Python 3 port and it only supports Python 2.2 and older versions. Reported by Alex Walters on docs@p.o. (cherry picked from commit d3ed2877a798d07df75422afe136b4727e500c99) | 04 July 2017, 06:27:48 UTC |
d1b474c | Victor Stinner | 03 July 2017, 21:37:14 UTC | Tools/buildbot/test.bat: add --slowest option (#2552) | 03 July 2017, 21:37:14 UTC |
1e4fcb3 | Victor Stinner | 03 July 2017, 20:18:28 UTC | regrtest: fix --list-cases --verbose (#2547) Write header and "Using seed ..." after checking for --list-cases and --list-tests. | 03 July 2017, 20:18:28 UTC |
c51a8e9 | Serhiy Storchaka | 03 July 2017, 20:01:57 UTC | [2.7] Rename test_ file that is really a support file to remove test_ prefix. (#2548) I thought I had run the full test suite before the last checkin, but obviously I didn't. test_multibytecodec_support.py isn't really a test file, it is a support file that contains a base test class. Rename it to multibytecodec_support so that regrtest test discovery doesn't think it is a test file that should be run.. (cherry picked from commit 75d9aca97ad3c3d823d2f2211f579454b3216f51) | 03 July 2017, 20:01:57 UTC |
d7955b8 | Victor Stinner | 03 July 2017, 13:07:53 UTC | [2.7] bpo-29512, bpo-30764: Backport regrtest enhancements from 3.5 to 2.7 (#2541) * bpo-29512, bpo-30764: Backport regrtest enhancements from 3.5 to 2.7 * bpo-29512: Add test.bisect, bisect failing tests (#2452) Add a new "python3 -m test.bisect" tool to bisect failing tests. It can be used to find which test method(s) leak references, leak files, etc. * bpo-30764: Fix regrtest --fail-env-changed --forever (#2536) (#2539) --forever now stops if a fail changes the environment. * Fix test_bisect: use absolute import | 03 July 2017, 13:07:53 UTC |
fd93f37 | Victor Stinner | 30 June 2017, 23:01:28 UTC | bpo-30448: Fix support.SuppressCrashReport on macOS (#2515) Add missing "import subprocess". | 30 June 2017, 23:01:28 UTC |
311ae46 | Dmitry Tokarev | 30 June 2017, 19:35:44 UTC | [2.7] Docs: fixed placement of .. _func-list: in functions.rst (#2520) Oh, this is my fault too. I missed this mistake. Thank you for the correction. | 30 June 2017, 19:35:44 UTC |
58bb0d8 | Dmitry Tokarev | 30 June 2017, 19:02:59 UTC | Fixed 2.7 docs - links to list, backported from python3.x (#2518) | 30 June 2017, 19:02:59 UTC |
a45a99b | Antoine Pitrou | 30 June 2017, 08:54:54 UTC | [2.7] bpo-30807: signal.setitimer() may disable the timer by mistake (GH-2493) (#2499) * bpo-30807: signal.setitimer() may disable the timer by mistake * Add NEWS blurb. (cherry picked from commit 729780a810bbcb12b245a1b652302a601fc9f6fd) | 30 June 2017, 08:54:54 UTC |
12536bd | Antoine Pitrou | 28 June 2017, 11:48:38 UTC | [2.7] Clear potential ref cycle between Process and Process target (GH-2470) (#2473) * Clear potential ref cycle between Process and Process target Besides Process.join() not being called, this was an indirect cause of bpo-30775. The threading module already does this. * Add issue reference. (cherry picked from commit 79d37ae979a65ada0b2ac820279ccc3b1cd41ba6) | 28 June 2017, 11:48:38 UTC |
5b5002c | regexaurus | 28 June 2017, 02:36:15 UTC | Clarification to the `break` statement (GH-2453) (GH-2459) Clarify that the break statement breaks out of the innermost enclosing for or while loop. (cherry picked from commit 36fc896740319d2c03aa2054a90a999c162517ef) | 28 June 2017, 02:36:15 UTC |
fea98bf | Victor Stinner | 27 June 2017, 14:56:43 UTC | [2.7] bpo-30523, bpo-30764, bpo-30776: Sync regrtest from master (#2444) * bpo-30523: regrtest --list-cases --match (#2401) * regrtest --list-cases now supports --match and --match-file options. Example: ./python -m test --list-cases -m FileTests test_os * --list-cases now also sets support.verbose to False to prevent messages to stdout when loading test modules. * Add support._match_test() private function. (cherry picked from commit ace56d583664f855d89d1219ece7c21c2fddcf30) (cherry picked from commit 36946c06a3bdb1104c53f0fe535086572ffbdd9e) * bpo-30764: regrtest: add --fail-env-changed option (#2402) * bpo-30764: regrtest: change exit code on failure * Exit code 2 if failed tests ("bad") * Exit code 3 if interrupted * bpo-30764: regrtest: add --fail-env-changed option If the option is set, mark a test as failed if it alters the environment, for example if it creates a file without removing it. (cherry picked from commit 63f54c68936d648c70ca411661e4208329edcf26) (cherry picked from commit 1f33857a3677de84bdc6d80c39f577eb081ed85d) * bpo-30776: reduce regrtest -R false positives (#2422) * Change the regrtest --huntrleaks checker to decide if a test file leaks or not. Require that each run leaks at least 1 reference. * Warmup runs are now completely ignored: ignored in the checker test and not used anymore to compute the sum. * Add an unit test for a reference leak. Example of reference differences previously considered a failure (leak) and now considered as success (success, no leak): [3, 0, 0] [0, 1, 0] [8, -8, 1] (cherry picked from commit 48b5c422ffb03affb00c184b9a99e5537be92732) (cherry picked from commit e0f8b43a46850aa5e5992465cab684496f102fe5) | 27 June 2017, 14:56:43 UTC |
2d77558 | Victor Stinner | 27 June 2017, 13:37:19 UTC | bpo-30705: Fix test_regrtest.test_crashed() (#2439) * Add test.support._crash_python() which triggers a crash but uses test.support.SuppressCrashReport() to prevent a crash report from popping up. * Modify test_child_terminated_in_stopped_state() of test_subprocess and test_crashed() of test_regrtest to use _crash_python(). | 27 June 2017, 13:37:19 UTC |
95a91df | Victor Stinner | 27 June 2017, 12:31:40 UTC | bpo-30764: Windows support.SuppressCrashReport (#2423) * Add Windows support to test.support.SuppressCrashReport: call SetErrorMode() and CrtSetReportMode(). * _testcapi: add CrtSetReportMode() and CrtSetReportFile() functions and CRT_xxx and CRTDBG_xxx constants needed by SuppressCrashReport. | 27 June 2017, 12:31:40 UTC |
305f333 | Victor Stinner | 27 June 2017, 06:42:01 UTC | bpo-30283: Add NEWS entry for backported regrtest (#2398) | 27 June 2017, 06:42:01 UTC |
2097b9e | Victor Stinner | 26 June 2017, 22:00:51 UTC | [2.7] bpo-30764: test_subprocess uses SuppressCrashReport (#2405) (#2412) * bpo-30764: Backport support.SuppressCrashReport Backport test.support.SuppressCrashReport context-manager from master. Drop the Windows implementation since it depends on msvcrt.CrtSetReportMode() which isn't available on Python 2.7. * bpo-30764: test_subprocess uses SuppressCrashReport (#2405) bpo-30764, bpo-29335: test_child_terminated_in_stopped_state() of test_subprocess now uses support.SuppressCrashReport() to prevent the creation of a core dump on FreeBSD. (cherry picked from commit cdee3f14f7f4c995e7eedb0bf6a67e260c739f7d) | 26 June 2017, 22:00:51 UTC |
8284883 | Antoine Pitrou | 26 June 2017, 20:13:39 UTC | [2.7] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) (#2420) * [2.7] bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to (GH-2403) * bpo-30765: Avoid blocking when PyThread_acquire_lock() is asked not to lock This is especially important if PyThread_acquire_lock() is called reentrantly (for example from a signal handler). * Update 2017-06-26-14-29-50.bpo-30765.Q5iBmf.rst * Avoid core logic when taking the mutex failed. (cherry picked from commit f84ac420c2af98339678744953869cad3c253281) * Remove test undef | 26 June 2017, 20:13:39 UTC |
787826c | Serhiy Storchaka | 25 June 2017, 06:50:00 UTC | [2.7] bpo-30746: Prohibited the '=' character in environment variable names (GH-2382) (#2393) in `os.putenv()` and `os.spawn*()`.. (cherry picked from commit 77703942c5997dff00c48f10df1b29b11645624c) | 25 June 2017, 06:50:00 UTC |
9dda2ca | Serhiy Storchaka | 24 June 2017, 08:49:00 UTC | [2.7] bpo-30730: Prevent environment variables injection in subprocess on Windows. (GH-2325) (#2372) Prevent passing other invalid environment variables and command arguments.. (cherry picked from commit d174d24a5d37d1516b885dc7c82f71ecd5930700) | 24 June 2017, 08:49:00 UTC |
7709b4d | Serhiy Storchaka | 23 June 2017, 11:13:39 UTC | [2.7] bpo-30727: Fix a race condition in test_threading. (GH-2334). (#2353) (cherry picked from commit 32cb968a2edd482891c33b6f2ebae10f1d305424) | 23 June 2017, 11:13:39 UTC |
5082674 | Mariatta | 23 June 2017, 04:24:23 UTC | [2.7] bpo-30709: Improve code example in Descriptor HowTo doc (GH-2339) (GH-2340) (cherry picked from commit b066edfb1b268e90ea11f45dd1827f46d7ceec88) | 23 June 2017, 04:24:23 UTC |
1ecfa45 | larryhastings | 22 June 2017, 23:00:05 UTC | Add "Misc/NEWS.d" directory tree for "blurb". (#2333) CPython workflow is changing! We're going to start using "blurb" to manage Misc/NEWS entries: https://github.com/python/core-workflow (This will be a big win for release managers, honest.) This checkin simply populates the "Misc/NEWS.d" subdirectory tree so that people can start putting their news entries in there. No other changes (yet). | 22 June 2017, 23:00:05 UTC |
da6d305 | Victor Stinner | 22 June 2017, 00:09:40 UTC | bpo-8799: Reduce timing sensitivity of condition test by explicitly (#2320) delaying the main thread so that it doesn't race ahead of the workers. (cherry picked from commit 020af2a2bc4708215360a3793b5a1790e15d05dd) | 22 June 2017, 00:09:40 UTC |
ab3b0ad | Jeremy Kloth | 21 June 2017, 19:14:53 UTC | bpo-29591: Update VS project files (#2310) * Silence warnings caused by duplicated defines from Modules\expat\winconfig.h * Add WIN32 define to VS9.0 project files to match MSBuild project files. | 21 June 2017, 19:14:53 UTC |
2ada64d | Victor Stinner | 21 June 2017, 15:12:46 UTC | [2.7] bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) (#2312) * bpo-30694: Upgrade Modules/expat/ to libexpat 2.2.1 (#2300) New file: Modules/expat/siphash.h. (cherry picked from commit 5ff7132313eb651107b179d20218dfe5d4e47f13) * siphash.h: Address lack of stdint.h for Visual Studio 2003-2008 (cherry picked from libexpat commit c74d380b8f0b5215153d840d2af9455d9c53b960) | 21 June 2017, 15:12:46 UTC |
ebbccea | Jeremy Kloth | 20 June 2017, 20:53:39 UTC | bpo-30368: Update build_ssl.py to restore Perl-less building (#1805) * bpo-30368: Update build_ssl.py to restore Perl-less building OpenSSL 1.0.2 releases changed how files are copied in the makefile, thus causing Perl to be required even for Python's "prepared" OpenSSL. Now build_ssl.py does the requisite copies before running nmake. * bpo-30368: Update build_ssl.py to use prepared OpenSSL * Updates SSL-linking projects to use the new include{suffix} directory * build_ssl.py now only copies those files not handled by prepare_ssl.py * * bpo-30368: Update build_ssl.py to use prepared OpenSSL * Update SSL-linking projects to use the new include{suffix} directory * Move comment to following line | 20 June 2017, 20:53:39 UTC |
d4324ba | Victor Stinner | 20 June 2017, 14:20:36 UTC | bpo-30500: urllib: Simplify splithost by calling into urlparse. (#1849) (#2294) The current regex based splitting produces a wrong result. For example:: http://abc#@def Web browsers parse that URL as ``http://abc/#@def``, that is, the host is ``abc``, the path is ``/``, and the fragment is ``#@def``. (cherry picked from commit 90e01e50ef8a9e6c91f30d965563c378a4ad26de) | 20 June 2017, 14:20:36 UTC |
b39a748 | Xiang Zhang | 19 June 2017, 14:12:45 UTC | bpo-30176: Add missing curses cell attributes constants (#2278) | 19 June 2017, 14:12:45 UTC |
c3c9db8 | Jay Bosamiya | 18 June 2017, 16:41:03 UTC | [2.7] bpo-30657: Check & prevent integer overflow in PyString_DecodeEscape (#2174) | 18 June 2017, 16:41:03 UTC |
24c2c20 | Victor Stinner | 16 June 2017, 15:30:03 UTC | bpo-30540, bpo-30523: Add --matchfile and --list-cases options to regrtest (#2249) [2.7] bpo-30540, bpo-30523: Add --matchfile and --list-cases options to regrtest | 16 June 2017, 15:30:03 UTC |
8bb0863 | Victor Stinner | 16 June 2017, 10:14:09 UTC | bpo-30675: Fix refleak hunting in regrtest (#2227) regrtest now warms up caches: create explicitly all internal singletons which are created on demand to prevent false positives when checking for reference leaks. | 16 June 2017, 10:14:09 UTC |
0e4571a | Victor Stinner | 15 June 2017, 00:16:35 UTC | bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164) (#2202) * bpo-29591: Upgrade Modules/expat to libexpat 2.2 * bpo-29591: Restore Python changes on expat * bpo-29591: Remove expat config of unsupported platforms Remove the configuration (Modules/expat/*config.h) of unsupported platforms: * Amiga * MacOS Classic on PPC32 * Open Watcom * bpo-29591: Remove useless XML_HAS_SET_HASH_SALT The XML_HAS_SET_HASH_SALT define of Modules/expat/expat.h became useless since our local expat copy was upgrade to expat 2.1 (it's now expat 2.2.0). (cherry picked from commit 23ec4b57e1359f9c539b8defc317542173ae087e) | 15 June 2017, 00:16:35 UTC |
4b30107 | Mariatta | 14 June 2017, 19:07:42 UTC | bpo-30659 : Use ** for kwargs in namedtuple._replace() signature (GH-2173) (GH-2196) (cherry picked from commit 184bd82ba8106785ba22f0d2477dbd08bef821fb) | 14 June 2017, 19:07:42 UTC |
311054a | csabella | 14 June 2017, 16:26:03 UTC | Fix trivial typo in Python Setup documentation (GH-2185) (GH-2190) Replace platform with platforms. (cherry picked from commit 4ebf03d109f827c91a23256a447c1d74a203dfee) | 14 June 2017, 16:26:03 UTC |
d09f167 | Antoine Pitrou | 13 June 2017, 15:52:29 UTC | [2.7] bpo-24484: Avoid race condition in multiprocessing cleanup (GH-2159) (#2168) * bpo-24484: Avoid race condition in multiprocessing cleanup The finalizer registry can be mutated while inspected by multiprocessing at process exit. * Use test.support.start_threads() * Add Misc/NEWS. (cherry picked from commit 1eb6c0074d17f4fd425cacfdda893d65f5f77f0a) | 13 June 2017, 15:52:29 UTC |
a51f12f | Nick Coghlan | 13 June 2017, 10:58:48 UTC | [2.7] bpo-29514: Check magic number for bugfix releases Add a test to check the current MAGIC_NUMBER against the expected number for the release if the current release is at candidate or final level. On test failure, describe to the developer the procedure for changing the magic number. This ensures that pre-merge CI will automatically pick up on magic number changes in maintenance releases (and explain why those are problematic), rather than relying on all core developers to be aware of the implications of such changes. | 13 June 2017, 10:58:48 UTC |
bdd3567 | Victor Stinner | 13 June 2017, 09:12:01 UTC | _tkinter: Fix refleak in getint() (#2153) PyNumber_Int() creates a new reference: need to decrement result reference counter. | 13 June 2017, 09:12:01 UTC |
15a6127 | Antoine Pitrou | 13 June 2017, 08:21:28 UTC | [2.7] Mention how to disable signal fd wakeup (GH-2140) (#2151) (cherry picked from commit d79c1d4a9406384f10a37f26a7515ce79f9fdd78) | 13 June 2017, 08:21:28 UTC |