Commit Graph

80589 Commits

Author SHA1 Message Date
Ned Deily 1cbdbf35db
bpo-33764: Appveyor fixes (GH-7364) (GH-7380)
* Prevent spurious message if taking a shortcut
* Fix YAML style
* Disable largefile tests
2018-06-04 00:52:38 -04:00
Serhiy Storchaka 93ba6da27e [2.7] bpo-33759: Fix test.test_xmlrpc.ServerProxyTestCase. (GH-7362) (GH-7374)
It depended on a global variable set by other tests..
(cherry picked from commit 7cfd8c6a1b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-03 23:39:00 -04:00
Serhiy Storchaka b02ceb57d2 [2.7] bpo-33760: Fix file leaks in test_io. (GH-7361). (GH-7373)
(cherry picked from commit e36837cb71)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-03 23:37:57 -04:00
Antoine Pitrou ded666ff0c
[2.7] bpo-30654: Do not reset SIGINT handler to SIG_DFL in finisignal (GH-7146) (GH-7347)
(cherry picked from commit e905c84494)
2018-06-03 20:46:43 +02:00
Serhiy Storchaka 9b5c9488c7
[2.7] bpo-33744: Fix test_uu. (GH-7350) (GH-7354)
Separate tests leaked files or were depended on files leaked in other tests.
(cherry picked from commit 027f95c736)
2018-06-03 19:31:53 +03:00
Miss Islington (bot) af36859636
bpo-23495: Correct the documentation for writerows() of csv Writer objects (GH-6316)
`writerows()` takes an iterable.
(cherry picked from commit a801cf164b)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-06-02 08:41:26 -07:00
Victor Stinner 1d4be0a65f
bpo-33532: Fix test_multiprocessing_forkserver.test_ignore() (GH-7323)
Use also support.SOCK_MAX_SIZE, not only support.PIPE_MAX_SIZE, to
get the size for a blocking send into a multiprocessing pipe.

Replace also test_support with support.
2018-06-01 19:39:10 +02:00
Victor Stinner 3604b2390a
bpo-31479: Always reset the signal alarm in tests (GH-3588) (GH-7314)
* bpo-31479: Always reset the signal alarm in tests

Use "try: ... finally: signal.signal(0)" pattern to make sure that
tests don't "leak" a pending fatal signal alarm.

* Move two more alarm() calls into the try block

Fix also typo: replace signal.signal(0) with signal.alarm(0)

* Move another signal.alarm() into the try block

(cherry picked from commit 9abee722d4)
2018-06-01 15:23:02 +02:00
Victor Stinner 0f642620a8
bpo-33692: Update pythoninfo from master (GH-7304)
* bpo-33717: pythoninfo: add CC --version (GH-7290)
2018-06-01 12:29:46 +02:00
T. Wouters 8b98d2a739
Add a crasher to Lib/test for issue #26153. This crasher doesn't crash (#6518)
Python 3.6, although I've seen the same crash in 3.6 (when involving
extension types and more complicated threading setups).
2018-05-31 12:22:11 +02:00
Serhiy Storchaka db1074244d
[2.7] bpo-33677: Fix the signature of tp_clear handler for deque. (GH-7196). (GH-7277)
(cherry picked from commit a5c42284e6)
2018-05-31 10:32:43 +03:00
Victor Stinner 82c456fa37
bpo-33532: Fix multiprocessing test_ignore() (GH-7265)
Fix test_multiprocessing.test_ignore(): use support.PIPE_MAX_SIZE
to make sure that send_bytes() blocks.
2018-05-31 07:35:34 +02:00
Serhiy Storchaka d5e7556e52
bpo-33645: Fix an "unknown parsing error" in the parser. (GH-7119)
It is reproduced when parse the "<>" operator and run
Python with both options -3 and -We.
2018-05-31 07:35:39 +03:00
Victor Stinner 9994eff17f
bpo-33692: pythoninfo detect libedit on Python 2.7 (#7246)
Check which readline implementation is used based on the readline
docstring.
2018-05-30 23:36:04 +02:00
Victor Stinner 823c295efa
bpo-29512: Rename Lib/test/bisect.py to bisect_cmd.py (#7229)
Rename Lib/test/bisect.py to Lib/test/bisect_cmd.py. The old name was
in conflict with Lib/bisect.py, causing test failures, depending how
tests were run.

For example, "python2.7 Lib/test/test_httpservers.py" imported
indirectly Lib/test/bisect.py instead of Lib/bisect.py
on "import bisect".
2018-05-30 17:24:40 +02:00
Petr Viktorin f3d269a366
[2.7] Improve ensurepip's --help (GH-4686) (GH-7240)
* Add a space to ensurepip's --altinstall option
* Add periods to the arguments of ensurepip that didn't have it

This makes --help for all optional arguments consistent and also makes it
consistent with pip --help..
(cherry picked from commit e9537ad6a1)

Co-authored-by: Wieland Hoffmann <mineo@users.noreply.github.com>
2018-05-30 12:36:17 +02:00
Andrés Delfino 5583ef4777 [2.7] bpo-33670: Expose Sphinx errorlevel (GH-7156). (GH-7201)
(cherry picked from commit 8c1ad0c4f6)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-05-29 15:30:50 -07:00
Victor Stinner 1da37adc28
test.regrtest: flush stdout to display progress (#7120)
Call sys.stdout.flush() after displaying "running: ...".
2018-05-28 13:30:42 +02:00
Terry Jan Reedy 804fcf6655
[2.7] bpo-33595: Fix lambda parameters being refered as arguments (GH-7037) (GH-7122)
(cherry picked from commit 268cc7c)

Co-authored-by: Andrés Delfino adelfino@gmail.com
2018-05-25 14:38:09 -04:00
Pablo Galindo 19f6bd06af bpo-33354: Fix test_ssl when a filename cannot be encoded (GH-6613)
Skip test_load_dh_params() of test_ssl when Python filesystem encoding
cannot encode the provided path.
2018-05-25 00:20:44 +02:00
Serhiy Storchaka 9044cd6759
[2.7] bpo-33622: Fix issues with handling errors in the GC. (GH-7078) (#7096)
* Fixed a leak when the GC fails to add an object with __del__ into
  the gc.garbage list.
* PyGC_Collect() can now be called when an exception is set and
  preserves it.
(cherry picked from commit 301e3cc8a5)
2018-05-24 23:27:08 +03:00
Andrés Delfino 8cbde8a437 [2.7] bpo-33518: Add PEP entry to documentation glossary (GH-6860). (#6936)
(cherry picked from commit d5f1442608)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
2018-05-22 15:37:24 +02:00
Serhiy Storchaka 6c58f7f4b1
[2.7] Fix line breaks added after hyphens by blurb. (GH-7052) 2018-05-22 14:55:52 +03:00
Miss Islington (bot) 3ccc31386d
bpo-33583: Add note in PyObject_GC_Resize() doc (GH-7021)
(cherry picked from commit 1179f4b40f)

Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
2018-05-21 07:10:27 -07:00
Serhiy Storchaka ea9a0994cd
[2.7] bpo-33542: Ignore DUID in uuid.get_node on Windows. (GH-6922) (GH-7015)
uuid._ipconfig_getnode did not validate the maximum length of the value,
so long as the value had the same type of formatting as a MAC address.
This let it select DUIDs as MAC addresses. It now requires an exact
length match..
(cherry picked from commit c66c342cb4)

Co-authored-by: CtrlZvi <viz+github@flippedperspective.com>
2018-05-21 01:50:33 +03:00
Victor Stinner d13169fc5a
bpo-16055: Fixes incorrect error text for int('1', base=1000) (#6980)
Fixes incorrect error text for int('1', base=1000)
and long('1', base=1000).
2018-05-19 01:53:13 +02:00
Miss Islington (bot) 6a8954a91a [2.7] Fix C API docs: PyCapsule_Import always set an exception on failure. (GH-6967) (GH-6970)
(cherry picked from commit bde3e0bf09)
2018-05-18 17:19:21 +03:00
Stéphane Wirtel ad65d09fd0 [2.7] bpo-33503: Fix the broken pypi link in the source and the documentation (GH-6814). (GH-6905)
(cherry picked from commit 19177fbd5d)

Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
2018-05-16 10:57:36 -04:00
Serhiy Storchaka 861d38443d
[2.7] bpo-32861: robotparser fix incomplete __str__ methods. (GH-5711) (GH-6795) (GH-6817)
The robotparser's __str__ representation now includes wildcard
entries.
(cherry picked from commit c3fa1f2b93)

Co-authored-by: Michael Lazar <lazar.michael22@gmail.com>.
2018-05-15 01:09:47 +03:00
Miss Islington (bot) 84fc6c59cf
bpo-22069: Update TextIO documentation (GH-6609)
Clarify that flush is implied when the call to write contains a newline character.
(cherry picked from commit 7ffd4c58fa)

Co-authored-by: Elena Oat <oat.elena@gmail.com>
2018-05-14 09:11:42 -07:00
Bo Bayles afe5f633e4 bpo-33038: Fix gzip.GzipFile for file objects with a non-string name attribute. (GH-6095) 2018-05-09 13:14:40 +03:00
Serhiy Storchaka d7e783b17f
[2.7] bpo-13525: Fix incorrect encoding name in the tutorial example. (GH-6738). (GH-6744)
(cherry picked from commit ddb6215a55)
2018-05-09 12:35:28 +03:00
Serhiy Storchaka 903f189b6e
bpo-33096: Removed unintentionally backported from Python 3 Tkinter files. (GH-6724)
This partially reverts commit e80a232f2c.
2018-05-08 10:09:08 +03:00
Andrés Delfino c40eeeb5e6 [2.7] bpo-33422: Fix quotation marks getting deleted when looking up byte/string literals on pydoc. (GH-6701) (GH-6712)
Also update the list of string prefixes.
(cherry picked from commit b2043bbe60)
2018-05-07 08:44:03 +03:00
Serhiy Storchaka a55ac801f7
[2.7] bpo-20087: Update locale alias mapping with glibc 2.27 supported locales. (GH-6708). (GH-6717)
(cherry picked from commit cedc9b7420)
2018-05-06 10:51:49 +03:00
Cheryl Sabella 3a04598f63 bpo-32857: Raise error when tkinter after_cancel() is called with None. (GH-5701) (GH-6620)
(cherry picked from commit 74382a3f17)
2018-05-05 16:10:48 +03:00
Bo Bayles 4a1bc26832 [2.7] bpo-32362: Fix references to non-existent multiprocessing.Connection() (GH-6223) (GH-6646)
(cherry picked from commit 9f3535c9cd)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
2018-05-05 14:09:46 +03:00
Miss Islington (bot) 6d3d02c69a
bpo-33391: Fix refleak in set_symmetric_difference (GH-6670)
(cherry picked from commit 491bbedc20)

Co-authored-by: lekma <lekmalek@gmail.com>
2018-05-02 03:23:41 -07:00
Miss Islington (bot) 5818f08962 Mitigate macOS race condition in installer build (GH-6686) (#6689)
(cherry picked from commit fc6aa28bfd)

Co-authored-by: Ned Deily <nad@python.org>
2018-05-02 01:50:12 -04:00
Serhiy Storchaka 07ad02f62c
[2.7] bpo-33256: Replace angle brackets around python object repr to display it in html (GH-6442). (GH-6650)
(cherry picked from commit 7d68bfa826)

Co-authored-by: sblondon <sblondon@users.noreply.github.com>
2018-04-30 11:34:47 +03:00
Bo Bayles 07c3a612c7 Fix reference to exceptions in multprocessing docs. (GH-6647) 2018-04-30 08:29:24 +03:00
Benjamin Peterson 0d7d26bce4 2.7.15+ 2018-04-29 16:22:11 -07:00
Benjamin Peterson 75c8df51ac merge 2.7.15 release branch 2018-04-29 15:48:13 -07:00
Benjamin Peterson ca079a3ea3 bump to 2.7.15 2018-04-29 15:47:33 -07:00
Benjamin Peterson 4c86fc01f6 generate 2.7.15 NEWS 2018-04-29 15:47:18 -07:00
Benjamin Peterson 0b3800d82a Merge 2.7.15 release branch 2018-04-29 12:24:24 -07:00
Florian Weimer 0b91f8a668 Indicate that _PyGC_Head is only 8-byte aligned. (closes bpo-33374)
By spec, the "long double" in _PyGC_Head requires the union to always be 16-byte
aligned. However, obmalloc only yields 8-byte alignment. Compilers including GCC
8 are starting to use alignment information to do store-merging. So, the "long
double" needs to be changed to a simple "double" as was long ago done in Python
3 by e348c8d154. For 2.7, we need to add some
dummy padding to make sure _PyGC_Head stays the same size.
2018-04-29 12:18:33 -07:00
Andrés Delfino 1c6c8510f9 [2.7] bpo-33280: Reorganize external Tcl/Tk references. (GH-6473). (GH-6607)
(cherry picked from commit 67a8f4fed3)

Co-authored-by: Andrés Delfino <34587441+andresdelfino@users.noreply.github.com>
2018-04-26 16:50:07 +03:00
Benjamin Peterson 3219bbf6a1
fix running the curses.has_key module (closes bpo-33359) (GH-6608)
This was broken by poor automated translation back in 6e3dbbdf39.
2018-04-25 22:57:34 -07:00
Serhiy Storchaka 55299fffe3
[2.7] bpo-33330: Improve error handling in PyImport_Cleanup(). (GH-6564). (GH-6605)
(cherry picked from commit e9d9494d6b)
2018-04-26 03:28:14 +03:00