- 27 Aug, 2017 1 commit
-
-
Steve Dower authored
-
- 26 Aug, 2017 5 commits
-
-
Benjamin Peterson authored
-
Oren Milman authored
[2.7] bpo-28261: Prevent raising SystemError where PyArg_ParseTuple is used to parse non-args. (#3213)
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
- 22 Aug, 2017 3 commits
-
-
Victor Stinner authored
Use self.addCleanup(self.server.stop) to stop the HTTP server. Some tests didn't stop the server like test_https().
-
Victor Stinner authored
-
Victor Stinner authored
* 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 b907abc8) * 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 f6ebd838) * bpo-30871: Add "make pythoninfo" (#3120) (cherry picked from commit a3a01a2f) * 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 ad7eaed5) * 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 92b1f901) (cherry picked from commit 29d007bb670b486788f73c2d742b0ad0b679ff13)
-
- 21 Aug, 2017 2 commits
-
-
Victor Stinner authored
Check "tests" before its value is replaced.
-
Victor Stinner authored
Add the CPU count in the header.
-
- 18 Aug, 2017 3 commits
-
-
Victor Stinner authored
* 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 93d0cb58)
-
Victor Stinner authored
-
- 17 Aug, 2017 2 commits
-
-
Victor Stinner authored
* 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 4a347ce4) * Exclude also Modules/_ctypes/libffi on Python 2.7 * Remove _decimal/libmpdec, not in Python 2.7
-
Julien Palard authored
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 b616b972)
-
- 16 Aug, 2017 1 commit
-
-
Victor Stinner authored
Fix a warning about dangling processes in test_rapid_restart() of _test_multiprocessing: join the process. (cherry picked from commit 17657bb9)
-
- 15 Aug, 2017 1 commit
-
-
Christian Heimes authored
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)
-
- 13 Aug, 2017 1 commit
-
-
Julien Palard authored
* 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 122081de) * bpo-31149: Doc: Add Japanese to the language switcher. (#3028) (cherry picked from commit c82b7f33) (cherry picked from commit e8e7fba0b24582959feca9c31f2a72fc0251f83d)
-
- 11 Aug, 2017 2 commits
-
-
Victor Stinner authored
test_subprocess now also calls reap_children() in tearDown(), not only on setUp(). (cherry picked from commit cc42c121)
-
Victor Stinner authored
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 7b7c6dcf)
-
- 10 Aug, 2017 2 commits
-
-
Victor Stinner authored
* 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 e3510d74) * 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 6c8c2943)
-
Victor Stinner authored
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.
-
- 09 Aug, 2017 1 commit
-
-
Ammar Askar authored
[2.7] bpo-31150: Wait for child process in test_forkinthread to avoid thread reaped warnings (#3042)
-
- 08 Aug, 2017 2 commits
-
-
Victor Stinner authored
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.
-
Julien Palard authored
* 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 dff9b5f9)
-
- 05 Aug, 2017 1 commit
-
-
Shane Harvey authored
(cherry picked from commit c4c98660)
-
- 04 Aug, 2017 2 commits
-
-
Yuan Chao Chou authored
Change the shadowing naming, 'value' (Python-ast.c:3814), to 'val' to prevent the variables from being misused.
-
Subhendu Ghosh authored
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
-
- 02 Aug, 2017 1 commit
-
-
Serhiy Storchaka authored
some builtin and extension objects that don't support pickling explicitly and are pickled incorrectly by default (like memoryview or staticmethod).
-
- 01 Aug, 2017 2 commits
-
-
Mariatta authored
Use the copy provided in https://bugs.python.org/issue25910GH-msg295200 (cherry picked from commit 8474d871)
- 31 Jul, 2017 1 commit
-
-
INADA Naoki authored
(cherry pick from 9cd7e176)
-
- 29 Jul, 2017 1 commit
-
- 27 Jul, 2017 2 commits
-
-
Victor Stinner authored
* 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 12953ffe) * Fix syntax for Python 2.7
-
Victor Stinner authored
* 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 fd465611)
-
- 26 Jul, 2017 4 commits
-
-
Nir Soffer authored
* 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
-
Victor Stinner authored
* bpo-30778: Skip test_bsddb3 on Windows XP * Fix if, don't skip Windows Vista
-
Victor Stinner authored
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 2db64823)
-
Victor Stinner authored
* 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 1b7863c3) * 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 8f6eeaf2) (cherry picked from commit e42339d3a08a8fde3349722def85d7a8e49899be)
-