Commit Graph

80985 Commits

Author SHA1 Message Date
Miss Islington (bot) 55270d09c2
bpo-37149: Replace dead link for online Tkinter reference (GH-14616)
Also fix a name misspelling.
(cherry picked from commit 45bc61b971)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-06 00:04:53 -07:00
Miss Islington (bot) 03b0128082
Put pyexpatns.h include back. bpo-37437 (GH-14539)
(cherry picked from commit 2cd07920bb)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-07-01 22:38:31 -07:00
Ned Deily da7f6dbbf5
bpo-19960: Fix building of zlib on macOS without installed headers (GH-14257)
When building 2.7 on macOS without system header files installed in
``/usr/include``, a few extension modules dependent on system-supplied
third-party libraries were not being built, most notably zlib.
This situation arose in the past when building without the Command
Line Tools and the option to install header files in the traditional
system locations (like /usr/include).  As of macOS 10.14, the
header files are only available in an SDK so the problem addressed
here affects most 2.7 builds.
2019-07-01 19:15:09 -04:00
Miss Islington (bot) bc60c47169
[2.7] bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469) (GH-14475)
* Added documentation for textwrap.dedent behavior.
(cherry picked from commit eb97b9211e)


Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>


https://bugs.python.org/issue30754
2019-06-29 21:41:55 -07:00
Victor Stinner 065aff3c51
[2.7] bpo-37329: valgrind: ignore _PyWarnings_Init false alarms (GH-14202)
_PyWarnings_Init() only allocates memory once at startup but it is
not released at exit. Ignore this issue to be able to catch other
bugs more easily.
2019-06-28 18:13:33 +02:00
Miss Islington (bot) 4397c68663
closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)
(cherry picked from commit 3b03b09fc9)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-06-27 21:24:52 -07:00
Miss Islington (bot) dfa9499ccb [2.7] bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394) (GH-14404)
Fix test_wsgiref.testEnviron() to no longer depend on the environment
variables (don't fail if "X" variable is set).

testEnviron() now overrides os.environ to get a deterministic
environment. Test full TestHandler.environ content: not only a few
selected variables.
(cherry picked from commit 5150d32792)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-06-26 22:54:27 +02:00
Victor Stinner 49032fa7e1
bpo-37396, PCbuild: Include "_d" in "Killing any running ..." message (GH-14370)
Add $(PyDebugExt) in "Killing any running python$(PyDebugExt).exe
instances...".
2019-06-25 13:37:16 +02:00
animalize 0fc14b3733 bpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14182) 2019-06-24 16:27:03 -07:00
Victor Stinner 6cbff564f0
bpo-37124: Fix reference leak in test_msilib (GH-13750) (GH-14340)
(cherry picked from commit c0295dba25)
2019-06-24 16:09:49 +02:00
Victor Stinner 9d55bf440c
bpo-37359: Add --cleanup option to python3 -m test (GH-14332) (GH-14333)
* regrtest: Add --cleanup option to remove "test_python_*" directories
  of previous failed test jobs.
* Add "make cleantest" to run "python -m test --cleanup".

(cherry picked from commit 47fbc4e45b)
2019-06-24 13:21:18 +02:00
Miss Islington (bot) 0346448396
Improve threading.daemon docstring (GH-14278)
Rephrase and clarify that "the entire Python program exits when only daemon threads are left". This matches the documentation at https://docs.python.org/3/library/threading.htmlGH-thread-objects.
(cherry picked from commit bb110cc2ed)

Co-authored-by: mbarkhau <mbarkhau@gmail.com>
2019-06-23 12:08:28 -07:00
Victor Stinner adcdb1e4f5
bpo-37362: test_gdb now ignores stderr (GH-14287) (GH-14297)
test_gdb no longer fails if it gets an "unexpected" message on
stderr: it now ignores stderr. The purpose of test_gdb is to test
that python-gdb.py commands work as expected, not to test gdb.

(cherry picked from commit e56a123fd0)
2019-06-21 23:58:53 +02:00
Ned Deily c421c66a58
bpo-36231: Support building on macOS without /usr/include (GH-13773) (GH-14256) 2019-06-20 01:59:54 -04:00
Benjamin Peterson 598c756459
[2.7] Fix name of '\0'. (GH-14225)
'\0' is the NUL byte not NULL..
(cherry picked from commit 7821b4c6d2)
2019-06-18 23:03:35 -07:00
Ned Deily a5b1b22207
bpo-34631: Updated OpenSSL to 1.0.2s in macOS installer. (GH-14198) 2019-06-18 06:48:53 -04:00
animalize 373dace8d7 [2.7] bpo-35360: Update macOS installer to use SQLite 3.28.0 (GH-14183) 2019-06-18 05:59:53 -04:00
Alex Gaynor eb8b55927b [2.7] Update link in colorsys docs to be https (GH-14062) (GH-14110) 2019-06-17 18:41:44 -07:00
Steve Dower d8e3a8af77
bpo-34631: Updated OpenSSL to 1.0.2s in Windows installer (GH-14161) 2019-06-17 09:33:11 -07:00
Terry Jan Reedy 722733e940
[2.7] Fix 2.7 test -R test_IDLE failure on Windows (GH-13958)
Cherry-picked from 66d47da.
2019-06-16 16:36:23 -04:00
Xtreak ee15aa2b85 [2.7] bpo-35647: Fix path check in cookiejar. (GH-11436) (GH-13427) 2019-06-15 19:29:29 +03:00
Xtreak 979daae300 [2.7] bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (GH-13426)
This is a manual backport of ca7fe50635 since 2.7 has `http.cookiejar` in `cookielib`


https://bugs.python.org/issue35121
2019-06-15 08:29:43 -07:00
Victor Stinner 2b578479b9
[2.7] bpo-36742: Fix urlparse.urlsplit() error message for Unicode URL (GH-13937)
If urlparse.urlsplit() detects an invalid netloc according to NFKC
normalization, the error message type is now str rather than unicode,
and use repr() to format the URL, to prevent <exception str() failed>
when display the error message.
2019-06-11 12:45:35 +02:00
Dimitri John Ledkov 99b5c940d3 [2.7] bpo-34836: fix test_default_ecdh_curve, needs no tlsv1.3. (GH-9626)
Signed-off-by: Dimitri John Ledkov <xnox@ubuntu.com>

https://bugs.python.org/issue34836
2019-06-09 15:44:57 +10:00
Eric Wieser 48f190f79c [2.7] bpo-37188: Fix a divide-by-zero in arrays of size-0 objects (#13906) 2019-06-08 11:19:24 +02:00
Zackery Spytz 2bfc2dc214 [2.7] bpo-37170: Fix the cast on error in PyLong_AsUnsignedLongLongMask() (GH-13860) (GH-13898)
(cherry picked from commit dc2476500d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-06-07 18:22:56 +02:00
Tal Einat 1b57ab5c64
[2.7] bpo-37177: make IDLE's search dialogs transient (GH-13869)
This avoids the search dialogs being hidden behind the editor window.

(cherry picked from commit 554450fb4e)
2019-06-07 09:53:05 +03:00
Anthony Sottile 20093b3adf Update outdated reference to Mercurial (GH-12857) 2019-06-04 20:19:36 -04:00
Miss Islington (bot) 49832e60c8
Doc: Python 3.9 in sidebar and version switcher. (GH-13824)
(cherry picked from commit 59e7bbcaa4)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-06-04 16:21:08 -07:00
Steve Dower f61599b050
bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) 2019-06-04 09:40:16 -07:00
Miss Islington (bot) 74bede0d50
Fix variable name copy/paste error in build-installer.py (GH-13038)
(cherry picked from commit d337169156)

Co-authored-by: cclauss <cclauss@me.com>
2019-06-02 20:39:38 -07:00
Miss Islington (bot) bfc1f60560 [2.7] bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH-13688)
* bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH-13688)

msilib.Directory.start_component() was passing an extra argument to CAB.gen_id().
(cherry picked from commit c8d5bf6c3f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-05-31 15:39:39 -07:00
Hai Shi 103b8d9f91 [2.7] bpo-33071: remove outdated PyPI docs (GH-13087) (GH-13584)
Patch by Kojo Idrissa.
(cherry picked from commit 1b4abcf302)

Co-authored-by: Kojo Idrissa <kojoidrissa@users.noreply.github.com>


https://bugs.python.org/issue33071
2019-05-29 10:05:26 -07:00
Tony Flury 09ba83330b [2.7] bpo-33006 - Correct filter doc string to clarify 2nd argument can be iterable (GH-6015)
https://bugs.python.org/issue33006
2019-05-28 18:36:04 -07:00
Victor Stinner aaed2c332a
bpo-26423: Fix test_descr.test_wrap_lenfunc_bad_cast() on 32-bit Windows (GH-13629)
Skip the test if xrange(sys.maxsize) raises an OverflowError.
2019-05-28 18:15:30 +02:00
Victor Stinner 80dfe99016
bpo-26423: Fix possible overflow in wrap_lenfunc() (GH-13606) (GH-13625)
Fix possible overflow in wrap_lenfunc() when
sizeof(long) < sizeof(Py_ssize_t) (e.g., 64-bit Windows).

(cherry picked from commit 05f16416d9)
2019-05-28 17:23:07 +02:00
Victor Stinner d9d1045837
bpo-35907: Clarify the NEWS entry (GH-13557) 2019-05-24 23:28:56 +02:00
Michele Angrisano 25d8404c35 bpo-36713: Rename duplicated method in test_unicode. (#13525)
modified:   Lib/ctypes/test/test_unicode.py
 	modified:   Misc/ACKS
 	new file:   Misc/NEWS.d/next/Library/2019-05-23-15-57-36.bpo-36713.sjPhnf.rst
2019-05-23 16:42:50 +02:00
Victor Stinner 942c31dffb
bpo-35907: Complete test_urllib.test_local_file_open() (GH-13506)
Test also URLopener().open(), URLopener().retrieve(), and
DummyURLopener().retrieve().
2019-05-22 23:28:03 +02:00
SH b15bde8058 bpo-35907, CVE-2019-9948: urllib rejects local_file:// scheme (GH-11842)
CVE-2019-9948: Avoid file reading as disallowing the unnecessary URL scheme in urllib.urlopen().
2019-05-21 23:12:23 +02:00
Victor Stinner bb8071a4ca
bpo-30458: Disallow control chars in http URLs (GH-12755) (GH-13154) (GH-13315)
Disallow control chars in http URLs in urllib2.urlopen.  This
addresses a potential security problem for applications that do not
sanity check their URLs where http request headers could be injected.

Disable https related urllib tests on a build without ssl (GH-13032)
These tests require an SSL enabled build. Skip these tests when
python is built without SSL to fix test failures.

Use httplib.InvalidURL instead of ValueError as the new error case's
exception. (GH-13044)

Backport Co-Authored-By: Miro Hrončok <miro@hroncok.cz>

(cherry picked from commit 7e200e0763)

Notes on backport to Python 2.7:

* test_urllib tests urllib.urlopen() which quotes the URL and so is
  not vulerable to HTTP Header Injection.
* Add tests to test_urllib2 on urllib2.urlopen().
* Reject non-ASCII characters: range 0x80-0xff.
2019-05-21 15:12:33 +02:00
Terry Jan Reedy c841a30879
[2.7] Update idlelib NEWS.txt for 2.7 (GH-13436) 2019-05-19 22:35:21 -04:00
Miss Islington (bot) eda691dd9d
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
(cherry picked from commit 53d378c812)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-05-19 17:49:50 -07:00
Benjamin Peterson 951af2d7f1
closes bpo-36755: Suppress noisy error output in test HTTPS server by default. (GH-13370)
TLS 1.3 has a more efficient handshake protocol. The client can reject the server's credentials and close the connection before the server has even finished writing out all of its initial data. Depending on whether the server finishes writing the rest of its handshake before the it sees the connection is reset, the server will read an empty line or see a ECONNRESET OSError. Nothing is really wrong here with the server or client, so just suppress the error output in the OSError case to fix the test.

This fix isn't required in Python 3 because clients that reject the server's certificate will shut down the TLS layer before closing the TCP connection.
2019-05-17 11:29:38 -07:00
Victor Stinner f24a9f3bf4
bpo-27987: pymalloc: align by 16bytes on 64bit platform (GH-12850) (GH-13319)
(cherry picked from commit f0be4bbb9b)
2019-05-15 16:31:10 +02:00
Terry Jan Reedy 353f8d2282
[2.7] bpo-36807: When saving a file in IDLE, call flush and fsync (GH-13102) (GH-13293) 2019-05-13 18:29:15 -04:00
Gregory P. Smith 7346a16ed5
[2.7] bpo-35925: Skip SSL tests that fail due to weak external certs or old TLS (GH-13124) (GH-13253)
Modern Linux distros such as Debian Buster have default OpenSSL system
configurations that reject connections to servers with weak certificates
by default. This causes our test suite run with external networking
resources enabled to skip these tests when they encounter such a
failure.

Fixing the network servers is a separate issue.
(cherry picked from commit 2cc0223)

Changes to test_ssl.py required as 2.7 has legacy protocol tests.

The test_httplib.py change is omitted from this backport as
self-signed.pythontest.net's certificate was updated and the
test_nntplib.py change is not applicable on 2.7.

Authored-by: Gregory P. Smith greg@krypto.org
2019-05-13 13:16:34 -07:00
Toshio Kuratomi 24ff9a44ac [2.7] closes bpo-14353: Fix detection of bind_textdomain_codeset in libintl. (GH-13265)
In Python-2.7, we were only searching for bind_textdomain_codeset in
libc.  We should have also checked for it in libintl.  This change from
Mel Flynn https://bugs.python.org/file24918/python27-configure.in.patch
fixes that.
2019-05-12 13:47:18 -07:00
Gregory P. Smith 7b5dca8345
[2.7] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192) (GH-13199)
* [2.7] bpo-36816: Update the self-signed.pythontest.net cert (GH-13192)

We updated the server, our testsuite must match.

https://bugs.python.org/issue36816

✈️ CLE -> DEN ✈️ #pycon2019 #beyonce
(cherry picked from commit 6bd81734de)

The 2.7 tree also needed a certificate in the capath directory updated.
The filename for that was determined by `openssl x509 -in $cert.pem -subject_hash`.

Authored-by: Gregory P. Smith <greg@krypto.org>
2019-05-08 18:53:15 -06:00
Julien Palard 8ab24b2ebc [2.7] bpo-24712: Doc: Make sidebar sticky using browser support. (GH-13179)
Patch by Mike Taylor.
2019-05-08 09:32:07 -04:00