Commit Graph

102919 Commits

Author SHA1 Message Date
Miss Islington (bot) a11d44056e
bpo-35497: add versionadded tag for EPOLLEXCLUSIVE (GH-11162)
(cherry picked from commit 92330c0b6d)

Co-authored-by: Manjusaka <lizheao940510@gmail.com>
2018-12-19 04:05:48 -08:00
Julien Palard a9ed8fcdba
bpo-35472: Doc: For Python 3.7 Sphinx 1.6.6 is enough. (GH-11192) 2018-12-19 11:14:55 +01:00
Miss Islington (bot) 9e1c7ed9aa
bpo-18799: Resurrect test_404 in test_xmlrpc. (GH-11196)
(cherry picked from commit fae95874b7)

Co-authored-by: Vajrasky Kok <sky.kok@speaklikeaking.com>
2018-12-19 01:46:23 -08:00
Serhiy Storchaka 1e47fbcf78
[3.7] bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174). (GH-11232)
(cherry picked from commit 2b57c43f21)
2018-12-19 09:28:12 +02:00
Miss Islington (bot) c74e7c48ba bpo-35424: Fix test_multiprocessing_main_handling (GH-11223) (GH-11227)
Fix test_multiprocessing_main_handling: use multiprocessing.Pool with
a context manager and then explicitly join the pool.
(cherry picked from commit 6cdce3ddef)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-19 00:43:27 +01:00
Miss Islington (bot) 729fc5d2ac
bpo-31731: Fix test_io.check_interrupted_write() (GH-11225)
Fix a race condition in check_interrupted_write() of test_io:
create directly the thread with SIGALRM signal blocked,
rather than blocking the signal later from the thread. Previously, it
was possible that the thread gets the signal before the signal is
blocked.
(cherry picked from commit 05c9d31eb6)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-18 15:10:47 -08:00
Miss Islington (bot) 12f3979b38 bpo-35465: Document _UnixSelectorEventLoop.add_signal_handler. (GH-11145) (GH-11221)
(cherry picked from commit e3666fc8ef)

Co-authored-by: Hrvoje Nikšić <hniksic@gmail.com>
2018-12-18 16:52:37 -05:00
Miss Islington (bot) 60c919b58b
bpo-35502: Fix reference leaks in ElementTree.TreeBuilder. (GH-11170)
(cherry picked from commit d2a75c6783)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-12-18 13:40:23 -08:00
Miss Islington (bot) f265afec1c
bpo-35461: Document C API functions which suppress exceptions. (GH-11119)
(cherry picked from commit 3fcc1e08db)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-12-18 12:24:39 -08:00
Miss Islington (bot) 6e96fb44f1
bpo-10496: distutils check_environ() handles getpwuid() error (GH-10931)
check_environ() of distutils.utils now catchs KeyError on calling
pwd.getpwuid(): don't create the HOME environment variable in this
case.
(cherry picked from commit 17d0c0595e)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-18 07:34:54 -08:00
Miss Islington (bot) 05dfa0cc96
bpo-35519: Rename test.bisect to test.bisect_cmd (GH-11200)
Rename test.bisect module to test.bisect_cmd to avoid conflict with
bisect module when running directly a test like
"./python Lib/test/test_xmlrpc.py".
(cherry picked from commit 1dd035954b)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-17 13:24:52 -08:00
Miss Islington (bot) 605ef6e534
bpo-35475: Add more PyImport* functions in refcounts.dat. (GH-11142)
(cherry picked from commit bdabb0737c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-12-17 07:48:29 -08:00
Miss Islington (bot) cb272843f2
bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175)
(cherry picked from commit 842acaab13)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-12-17 07:10:20 -08:00
Miss Islington (bot) c367d52a74
bpo-23451: Update time.monotonic() documentation (GH-11190)
bpo-23451, bpo-22117: Python 3.5 requires Windows Vista or newer,
time.monotonic() is now always system-wide.
(cherry picked from commit 3ab064e80a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-17 03:31:03 -08:00
Miss Islington (bot) 9ade4cbc0f
bpo-35513, unittest: TextTestRunner uses time.perf_counter() (GH-11180)
TextTestRunner of unittest.runner now uses time.perf_counter() rather
than time.time() to measure the execution time of a test: time.time()
can go backwards, whereas time.perf_counter() is monotonic.

Similar change made in libregrtest, pprint and random.
(cherry picked from commit 8db5b54463)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-17 02:49:22 -08:00
Miss Islington (bot) be69ff232d
bpo-35513: Replace time.time() with time.monotonic() in tests (GH-11182)
Replace time.time() with time.monotonic() in tests to measure time
delta.

test_zipfile64: display progress every minute (60 secs) rather than
every 5 minutes (5*60 seconds).
(cherry picked from commit 2cf4c202ff)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-17 01:03:04 -08:00
Miss Islington (bot) 2d91a1325f bpo-35412: Add testcase to test_future4 (GH-11131) (GH-11183)
Add testcase to test_future4: check unicode literal.
(cherry picked from commit 502fe19b10)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-17 09:34:06 +01:00
Miss Islington (bot) 9a4758550d bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11179)
"make profile-opt" no longer replaces CFLAGS_NODIST with CFLAGS. It
now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST,
existing CFLAGS_NODIST flags are kept.
(cherry picked from commit 640ed520dd)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-16 23:24:04 +01:00
Miss Islington (bot) d5176fe2bc bpo-35450: reflect in docs that venv module is not always creating a copy of the Python binary (GH-11144) (GH-11167)
https://bugs.python.org/issue35450
(cherry picked from commit f5107dfd42)

Co-authored-by: mkkot <marcin2006@gmail.com>
2018-12-14 12:38:23 -08:00
Miss Islington (bot) 77824ef6e5 bpo-35402: Update Windows build to use Tcl and Tk 8.6.9 (GH-11146)
(cherry picked from commit f8e9bd568a)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-14 09:49:10 -08:00
Miss Islington (bot) 5f252e1ebc
bpo-34279: regrtest consider that skipped tests are ran (GH-11132)
bpo-34279, bpo-35412: support.run_unittest() no longer raises
TestDidNotRun if a test result contains skipped tests. The
exception is now only raised if no test have been run and no test
have been skipped.
(cherry picked from commit 3a8f4fef4a)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-14 04:26:58 -08:00
Miss Islington (bot) 527008599d
Fixed missing colun in library/sys.po (GH-11153)
GH- Fixed missing colun in library/sys.po

[bpo-35492](https://bugs.python.org/issue35492): Fixed missing colun in library/sys.po
(cherry picked from commit cb0f5e29e3)

Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
2018-12-14 03:35:55 -08:00
Serhiy Storchaka 45a7b7617e
[3.7] bpo-35489: Use "const Py_UNICODE *" for the Py_UNICODE converter in AC. (GH-11150). (GH-11151)
(cherry picked from commit afb3e71a17)
2018-12-14 11:56:48 +02:00
Serhiy Storchaka 922b2a0d0d
[3.7] bpo-31446: Copy command line that should be passed to CreateProcessW(). (GH-11141). (GH-11149)
(cherry picked from commit 7b36016a15)

Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
2018-12-14 11:18:13 +02:00
Miss Islington (bot) f27f0d2be4 Add test for double patching instance methods (GH11126)
(cherry picked from commit 5a718e918d)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2018-12-12 09:00:44 +00:00
Miss Islington (bot) 6a12931c9c bpo-17185: Add __signature__ to mock that can be used by inspect for signature (GH11125)
* Fix partial and partial method signatures in mock

* Add more calls

* Add NEWS entry

* Use assertEquals and fix markup in NEWS

* Refactor branching and add markup reference for functools

* Revert partial object related changes and fix pr comments
(cherry picked from commit f7fa62ef44)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
2018-12-12 08:58:36 +00:00
Ned Deily 10cc6260f9 Post release bump 2018-12-11 21:16:34 -05:00
Ned Deily 75a402a217 3.7.2rc1 2018-12-11 16:46:13 -05:00
Ned Deily 9383969788 Minor edits to NEWS entries 2018-12-11 16:28:00 -05:00
Ned Deily 7353de8a77 Update macOS installer Welcome for 3.7.2 2018-12-11 16:02:53 -05:00
Ned Deily 8aa057aaab macOS installer build: mitigate hdiutil resource busy bug 2018-12-11 15:47:04 -05:00
Miss Islington (bot) d55a896cd6
bpo-35412: Skip test_multiprocessing_fork and test_multiprocessing_forkserver on Windows (GH-11086)
Forkserver and fork are not available on Windows and therefore these test must be skipped.
(cherry picked from commit a932d0b496)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2018-12-11 04:14:23 -08:00
Miss Islington (bot) f7404a5a08
bpo-35426: Eliminate race condition in test_interprocess_signal (GH-11087)
The test only except SIGUSR1Exception inside wait_signal(), but the signal can be sent during subprocess_send_signal() call.
(cherry picked from commit 2ab2afd387)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2018-12-11 03:50:34 -08:00
Miss Islington (bot) 45a31a1ec1
[3.7] bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests (GH-8520) (GH-11031)
(cherry picked from commit 3cf74384b5)


Co-authored-by: Anirudha Bose <ani07nov@gmail.com>


https://bugs.python.org/issue33747
2018-12-11 02:17:29 -08:00
Serhiy Storchaka 3cae16d2e9
bpo-35444: Fix error handling when fail to look up builtin "getattr". (GH-11047) (GH-11107)
(cherry picked from commit bb86bf4c4e)
2018-12-11 10:51:27 +02:00
Miss Islington (bot) 62674f3a36
bpo-35454: Fix miscellaneous minor issues in error handling. (GH-11077)
* bpo-35454: Fix miscellaneous minor issues in error handling.

* Fix a null pointer dereference.
(cherry picked from commit 8905fcc85a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-12-10 23:05:13 -08:00
Miss Islington (bot) 3b9a0186c4
bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)
(cherry picked from commit 7cf3d8e251)

Co-authored-by: Ned Deily <nad@python.org>
2018-12-10 22:28:49 -08:00
Miss Islington (bot) c37923ece7
bpo-35401: Update macOS installer to OpenSSL 1.1.0j (GH-11094)
https://bugs.python.org/issue35401
(cherry picked from commit 3ec982640f)

Co-authored-by: Ned Deily <nad@python.org>
2018-12-10 21:43:17 -08:00
Miss Islington (bot) 9bb306d586
bpo-34977: Remove unused preprocessor definition (GH-11092)
(cherry picked from commit d5a6a389d4)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-10 21:14:57 -08:00
Miss Islington (bot) d1fb21209b
bpo-35401: Update Windows build to OpenSSL 1.1.0j (GH-11088)
(cherry picked from commit 4824385fec)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-10 20:16:46 -08:00
Steve Dower 0e4ad88ff8
bpo-34977: Add Windows App Store package (GH-11027)
Also adds the PC/layout script for generating layouts on Windows.
2018-12-10 19:58:52 -08:00
Miss Islington (bot) b3ffe47bcb
Fix numbered lists in stdtypes.rst. (GH-10989)
(cherry picked from commit de9e9b476e)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2018-12-10 12:51:32 -08:00
Steve Dower b264c60985
[3.7] bpo-34977: Use venv redirector instead of original python.exe on Windows (GH-11029) 2018-12-10 08:11:34 -08:00
Miss Islington (bot) ef1fc0d031
bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
(cherry picked from commit b6ef6f69a9)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-10 07:25:31 -08:00
Miss Islington (bot) ea773eb1f9
bpo-35452: Make PySys_HasWarnOptions() never raising an exception. (GH-11075)
(cherry picked from commit dffccc6b59)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-12-10 04:37:09 -08:00
Miss Islington (bot) 1467a3ac12
bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define
properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L,
whereas <features.h> (included indirectly by <string.h>) defines
_POSIX_C_SOURCE as 199506L.
(cherry picked from commit cf247359d5)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-10 03:28:13 -08:00
Victor Stinner 1a7b62d557
bpo-35050: AF_ALG length check off-by-one error (GH-10058) (GH-11069)
The length check for AF_ALG salg_name and salg_type had a off-by-one
error. The code assumed that both values are not necessarily NULL
terminated. However the Kernel code for alg_bind() ensures that the last
byte of both strings are NULL terminated.

Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit 2eb6ad8578)
2018-12-10 12:13:01 +01:00
Victor Stinner c3cc75134d
bpo-35052: Fix handler on xml.dom.minidom.cloneNode() (GH-11061) (GH-11066)
Fix xml.dom.minidom cloneNode() on a document with an entity: pass
the correct arguments to the user data handler of an entity (fix an
old copy/paste mistake).

Bug spotted and fix proposed by Charalampos Stratakis, initial
reproducer written by Petr Viktorin.

Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
Co-Authored-By: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit 8e04186889)
2018-12-10 11:56:48 +01:00
Miss Islington (bot) fc79175f5e
bpo-35451: Fix reference counting for sys.warnoptions and sys._xoptions. (GH-11063)
(cherry picked from commit 72ff7b4c00)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-12-10 02:26:36 -08:00
Miss Islington (bot) c83ec055a0
bpo-35433: Properly detect installed SDK versions (GH-11009)
(cherry picked from commit f46eccd0ff)

Co-authored-by: Jeremy Kloth <jeremy.kloth@gmail.com>
2018-12-09 20:20:41 -08:00