Commit Graph

80261 Commits

Author SHA1 Message Date
Mariatta
b3c7d37c5a bpo-25910: Update LICENSE (GH-2873) (GH-2969)
Use the copy provided in https://bugs.python.org/issue25910GH-msg295200
(cherry picked from commit 8474d87165)
2017-07-31 19:55:20 -07:00
INADA Naoki
3e37f4a115 bpo-29519: weakref spewing exceptions during interp finalization (#2958)
(cherry pick from 9cd7e17640)
2017-07-31 10:52:46 -07:00
Mariatta
fa90179e07 Fix trivial typo in multiprocessing documentation (GH-2930) (GH-2942)
(cherry picked from commit 6fcb69dad5)
2017-07-28 19:55:04 -07:00
Victor Stinner
c2f7fb6151 [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 12953ffe12)

* Fix syntax for Python 2.7
2017-07-27 18:44:43 +02:00
Victor Stinner
fd6736d179 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 fd46561167)
2017-07-27 18:05:44 +02:00
Nir Soffer
29094cec7c 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
2017-07-27 01:24:52 +02:00
Victor Stinner
0cba38d207 bpo-30778: Skip test_bsddb3 on Windows XP (#2877)
* bpo-30778: Skip test_bsddb3 on Windows XP

* Fix if, don't skip Windows Vista
2017-07-26 17:55:52 +02:00
Victor Stinner
b65cb8a356 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 2db64823c2)
2017-07-26 17:54:42 +02:00
Victor Stinner
ec9a7127b8 [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 1b7863c3b6)

* 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 8f6eeaf21c)

(cherry picked from commit e42339d3a08a8fde3349722def85d7a8e49899be)
2017-07-26 17:52:36 +02:00
Dong-hee Na
e5eae474c4 [2.7] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal command (#1214) (#2894) 2017-07-26 17:50:36 +02:00
Aditya Hase
0666d0e504 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.
2017-07-25 13:59:52 -07:00
Victor Stinner
0fc940a09a 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.
2017-07-24 13:01:59 +02:00
Ned Deily
123a58bfc8 Backport Mac installer fixes for git-based workflow (#2837) 2017-07-24 04:29:32 -04:00
Ned Deily
8d41de62b9 bpo-29572: Update macOS installer build to OpenSSL 1.0.2k (#457) (#2836)
(cherry picked from commit cfcd76777e)
2017-07-24 04:02:29 -04:00
Nicholas
82a77d38d6 [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 b3527bfefd)
2017-07-21 16:29:44 +10:00
Victor Stinner
80ebc438ed bpo-30822: regrtest: fix -u extralargefile (#2788)
Fix also regrtest command line parser to allow passing -u
extralargefile to run test_zipfile64.
2017-07-21 02:12:14 +02:00
Mariatta
598f26b788 [2.7] Fix typo in Turtle Docs: yingyang -> yinyang (GH-2770) (GH-2780)
(cherry picked from commit fff2a21057)
2017-07-20 07:14:46 -07:00
Ned Deily
3b1e72662a Update doc download files size estimates. (#2774) 2017-07-20 04:45:42 -04:00
Ammar Askar
a739000db5 [2.7] bpo-30883: Use pythontest.net instead of debian.org in test_urllib2net (GH-2755) 2017-07-19 07:07:49 +03:00
Serhiy Storchaka
3dbe11a121 [2.7] bpo-30911: Add tests for bad boolean arguments for accelerated json (GH-2690) (#2729)
encoder and decoder.
(cherry picked from commit d3aaa2f149)
2017-07-16 07:51:03 +03:00
Ned Deily
64a9f3d961 bpo-30939: Avoid Sphinx deprecation warning in docs build. (#2721) (#2725)
(cherry picked from commit 50f58163a6)
2017-07-15 23:06:57 -04:00
Serhiy Storchaka
b6dae2e40d [2.7] bpo-30911: Add tests for bad boolean arguments for accelerated json (GH-2690) (#2694)
encoder and decoder..
(cherry picked from commit d3aaa2f149)
2017-07-13 12:03:18 +03:00
Xiang Zhang
a948d4f753 Add a missing asterisk in traceback doc to complete formatting (#2675) 2017-07-12 11:41:33 +08:00
Segev Finer
884c4ca33a [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 f52325598e)

* [2.7] Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670).
(cherry picked from commit f52325598e)
2017-07-12 00:16:28 +02:00
Nir Soffer
bfa4fe4f39 [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.
2017-07-11 00:06:57 +03:00