summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* [3.5] bpo-30107: don't dump core on expected test_io crash (#1235) (#1344)Victor Stinner2017-04-282-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-30107: Make SuppressCrashReport quiet on macOS (#1279) (#1335) On macOS, SuppressCrashReport now redirects /usr/bin/defaults command stderr into a pipe to not pollute stderr. It fixes a test_io.test_daemon_threads_shutdown_stderr_deadlock() failure when the CrashReporter domain doesn't exists. Message logged into stderr: 2017-04-24 16:57:21.432 defaults[41046:2462851] The domain/default pair of (com.apple.CrashReporter, DialogType) does not exist (cherry picked from commit d819ad9832292d854e9710493ecdf959b69802e3) * bpo-30107: don't dump core on expected test_io crash (#1235) test_io has two unit tests which trigger a deadlock: * test_daemon_threads_shutdown_stdout_deadlock() * test_daemon_threads_shutdown_stderr_deadlock() These tests call Py_FatalError() if the expected bug is triggered which calls abort(). Use test.support.SuppressCrashReport to prevent the creation on a core dump, to fix the warning: Warning -- files was modified by test_io Before: [] After: ['python.core']
* bpo-30131: test_logging now joins queue threads (#1298) (#1318)Victor Stinner2017-04-281-0/+8
| | | | | | | | | QueueListenerTest of test_logging now closes the multiprocessing Queue and joins its thread to prevent leaking dangling threads to following tests. Add also @support.reap_threads to detect earlier if a test leaks threads (and try to "cleanup" these threads). (cherry picked from commit 8ca2f2faefa8dba323a2e4c4b86efb633d7a53cf)
* bpo-30175: Skip client cert tests of test_imaplib (#1320) (#1324)Victor Stinner2017-04-272-1/+12
| | | | | | | | | | | | | | * bpo-30175: Skip client cert tests of test_imaplib The IMAP server cyrus.andrew.cmu.edu doesn't accept our randomly generated client x509 certificate anymore. * bpo-30188: Catch EOFError in NetworkedNNTPTests test_nntplib fails randomly with EOFError in NetworkedNNTPTests.setUpClass(). Catch EOFError to skip tests in that case. (cherry picked from commit 5bccca58b9b2b3a925b16750bedbd907695ea8d7)
* [3.5] bpo-30182: Use the correct name for ISO in Unicode HOWTO. (GH-1312) ↵Mariatta2017-04-261-3/+3
| | | | | (GH-1314) (cherry picked from commit 6fde770e4e940c19cd62de0b6aeb77840690843e)
* [3.5] bpo-30142: Remove "callable" from the 2to3fixer documentation. (GH-1304)Dong-hee Na2017-04-261-7/+0
|
* bpo-29974: Improve typing.TYPE_CHECKING example (GH-982)Berker Peksag2017-04-261-2/+7
| | | | | | | | | | * Fix PEP 8 (SomeType instead of some_type) * Add a function parameter annotation * Explain, using wording from PEP 484 and PEP 526, why one annotation is in quotes and another is not. Suggested by Ivan Levkevskyi. (cherry picked from commit 87c07fe9d908d0a2143fcc8369255c6ff3241503)
* bpo-28698: Fix c_wchar_p doc example (GH-1160)Louie Lu2017-04-261-5/+9
| | | (cherry picked from commit 0d637e236d7099f7b724026c8cb7bd83d8e12e6b)
* [3.5] bpo-29751: Improve PyLong_FromString documentation (GH-915) (#1267)Mariatta2017-04-231-7/+6
| | | (cherry picked from commit 26896f2832324dde85cdd63d525571ca669f6f0b)
* [3.5] bpo-15718: Document the upper bound constrain on the __len__ return ↵Serhiy Storchaka2017-04-231-0/+9
| | | | | value. (GH-1256) (#1260) (cherry picked from commit 85157cd)
* [3.5] Fix trailing colon and newline in test.rst (GH-1250) (#1255)Louie Lu2017-04-221-1/+2
| | | (cherry picked from commit 7fae81e1672d0b4110d31ea6a765b54f63a2e54b)
* bpo-30098: Clarify that run_coroutine_threadsafe expects asyncio.Future ↵Mariatta2017-04-211-1/+2
| | | | | (GH-1170) (#1246) (cherry picked from commit ae5b3260dd459845aad8a30491b76d471577785d)
* [3.5] bpo-29802: Fix the cleaning up issue in PyUnicode_FSDecoder(). ↵Serhiy Storchaka2017-04-211-0/+1
| | | | | (GH-1217) (#1219) (cherry picked from commit 7a113a0)
* [3.5] Add missing .gitignore entries for VS2015 IntelliSense DB (GH-1223) ↵Mariatta2017-04-201-0/+2
| | | | | (#1226) (cherry picked from commit 8e675286a92f33837cfffac5914b5175dac5d573)
* [3.5] bpo-30109: Fix reindent.py (GH-1207) (GH-1209)Mariatta2017-04-202-1/+12
| | | | Skip the file if it has bad encoding. (cherry picked from commit 58f3c9dc8f5626abe09ac9738c34f6ba99ce2972)
* Remove redundant comma in argparse HOWTO (GH-1141)Berker Peksag2017-04-201-1/+1
| | | | | Reported by Sean Canavan on docs@p.o. (cherry picked from commit 8526fb74edf5ac9ca175b7cdcb0d82bb8780d2cf)
* bpo-30078: Add an example of passing a path to unittest (GH-1178)Berker Peksag2017-04-201-0/+1
| | | (cherry picked from commit f7e62cf8adfb8ab6a6a870903defe8ff218a0383)
* bpo-19225: Remove duplicated description for standard warning categories ↵cocoatomo2017-04-201-12/+9
| | | | (GH-1068)
* [3.5] bpo-30065: Fixed arguments validation in _posixsubprocess.fork_exec(). ↵Serhiy Storchaka2017-04-205-26/+41
| | | | | (GH-1110) (#1190) (cherry picked from commit 66bffd1)
* [3.5] bpo-30070: Fixed leaks and crashes in errors handling in the parser ↵Serhiy Storchaka2017-04-193-43/+150
| | | | | module. (GH-1131). (#1185) (cherry picked from commit a79f4c219531c05fc8f670c1e4bbf12c081935d3)
* [3.5] bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() ↵Serhiy Storchaka2017-04-197-31/+95
| | | | | | | | | (GH-1096) (GH-1180) (#1182) raised an error. (cherry picked from commit bf623ae8843dc30b28c574bec8d29fc14be59d86) (cherry picked from commit 680fea4067537a9b9c79aadd44a3a19e83cd2dbf)
* [3.5] bpo-29943: Do not replace the function PySlice_GetIndicesEx() with a ↵Serhiy Storchaka2017-04-162-2/+4
| | | | | macro (#1049) if Py_LIMITED_API is not defined.
* bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is ↵Xiang Zhang2017-04-153-11/+23
| | | | present (#1130) (#1151)
* [3.5] bpo-30059: Include Py_Ellipsis in C API documentation (GH-1018) (GH-1148)Michael Seifert2017-04-141-0/+11
|
* [3.5] bpo-29738: Fix memory leak in _get_crl_dp (GH-526) (GH-1143)Mariatta2017-04-141-7/+1
| | | | | | | | | * Remove conditional on free of `dps`, since `dps` is now allocated for all versions of OpenSSL * Remove call to `x509_check_ca` since it was only used to cache the `crldp` field of the certificate CRL_DIST_POINTS_free is available in all supported versions of OpenSSL (recent 0.9.8+) and LibreSSL. (cherry picked from commit 2849cc34a8db93d448a62d69c462402347b50dcb)
* Fix misplaced positional argument in OS X support library (#1135)Jack McCracken2017-04-141-1/+1
|
* Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1133)Antoine Pitrou2017-04-141-0/+1
| | | (cherry picked from commit 685cdb9acc3fca04a9897d88b89771ddfd50e772)
* [3.5] bpo-29694: race condition in pathlib mkdir with flags parents=True ↵Mariatta2017-04-133-2/+36
| | | | | (GH-1089). (GH-1127) (cherry picked from commit 22a594a0047d7706537ff2ac676cdc0f1dcb329c)
* [3.5] Fix a typo in Doc/library/functions.rst (GH-1117) (GH-1124)Mariatta2017-04-131-1/+1
| | | | Replace `For object's ... ` with `For objects ...` (cherry picked from commit 873ef20d0007b4b120933473e6252d2309a70102)
* bpo-30021: Add examples for re.escape(). (#1048) (#1116)Serhiy Storchaka2017-04-132-3/+16
| | | | | And fix the parameter name. (cherry picked from commit 8fc7bc2b7631ee819ee614e47b6f44bacebe1574)
* bpo-29791: Clarify that flush is keyword-only argument (GH-1093)Berker Peksag2017-04-131-1/+1
| | | | | Reported by Lucio Ricardo Montero Valenzuela. (cherry picked from commit 61b9ac93712df8092a25223cd56fa6528359792b)
* [3.5] bpo-29692: contextlib.contextmanager may incorrectly unchain ↵Mariatta2017-04-133-6/+32
| | | | | | | | | | | RuntimeError (GH-949) (#1107) contextlib._GeneratorContextManager.__exit__ includes a special case to deal with PEP 479 RuntimeErrors created when `StopIteration` is thrown into the context manager body. Previously this check was too permissive, and undid one level of chaining on *all* RuntimeError instances, not just those that wrapped a StopIteration instance. (cherry picked from commit 00c75e9a45ff0366c185e9e8a2e23af5a35481b0)
* [3.5] Clarify exception handler scope in contextlib (GH-1104)Mariatta2017-04-121-1/+2
| | | | Moved explicit raise from inside try to try...else. (cherry picked from commit 680e20beee8bbce9f857b8e7795009191f98b0ba)
* [3.5] Remove superfluous comment in urllib.error. (GH-1076) (GH-1102)Mariatta2017-04-121-4/+0
| | | (cherry picked from commit 6fab78e9027f9ebd6414995580781b480433e595)
* bpo-26985: Add missing info of code object in inspect documentation ↵Xiang Zhang2017-04-133-191/+220
| | | | (GH-1090) (GH-1100)
* Remove OSError related comment in urllib.request. (#1071)Senthil Kumaran2017-04-091-1/+0
| | | (cherry picked from commit 6dfcc81f6b1c82a71a1c876e14424fb8b3573447)
* [3.5] Correct typo in configparser.rst (GH-1012) (GH-1027)Mariatta2017-04-091-2/+2
| | | (cherry picked from commit 01fa9ae5460b00bf1ced500c797176ebd3fb060d)
* Remove invalid comment in urllib.request.(#1056)Senthil Kumaran2017-04-091-6/+2
| | | (cherry picked from commit a2a9ddd923a849124bdd1c484f70f02df6fde0e9)
* bpo-29506: Clarify deep copy note in copy moduleNick Coghlan2017-04-092-2/+3
| | | | | | | The reference to administrative data was confusing to readers, so this simplifies the note to explain that deep copying may copy more then you intended, such as data that you expected to be shared between copies. (cherry picked from commit 19e04942562a980ad2519f6ff79c455a7472783b)
* bpo-29798: Handle git worktree in patchcheckNick Coghlan2017-04-091-1/+1
| | | | | The original attempted fix missed an `isdir()` call in `get_base_branch()`. (cherry picked from commit 2abfdf5a81383d3b1ed6b7321903a9a168c373c5)
* bpo-29998: Pickling and copying ImportError now preserves name and path ↵Serhiy Storchaka2017-04-083-0/+71
| | | | | | (#1010) (#1043) attributes. (cherry picked from commit b785396ab451b0c9d6ae9ee5a9e56c810209a6cb)
* Expand the PySlice_GetIndicesEx macro. (#1023) (#1045)Serhiy Storchaka2017-04-0811-45/+47
| | | (cherry picked from commit b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8)
* Closes bpo-29939: suppress compiler warnings in _ctypes_test (#1039)Vinay Sajip2017-04-071-3/+3
| | | | Changed test code to suppress a compiler warning, while taking care to avoid the code being optimized out by the compiler. (cherry picked from commit 164d30eb1e66575dafee6af4fca4cbf52c7fbe6a)
* Fix a minor typo. (#1032) (#1036)Barry Warsaw2017-04-071-1/+1
| | | (cherry picked from commit dd9a0a14c89d57e43898d4b866b8c161e4ff8506)
* Remove Invalid comment in test_urllib2.py (#1021)Senthil Kumaran2017-04-071-1/+0
| | | (cherry picked from commit fd0cd07a5a3c964c084f4efc5bbcb89dd2193ee6)
* [3.5] bpo-19225: Lack of c api exceptions doc (#965)cocoatomo2017-04-062-56/+146
| | | | | | * Keep the c-api exception doc up-to-date cherry-pick'ed from ec1f5df..e3d6db3 and fix conflict
* correct parse_qs and parse_qsl test case descriptions. (#968) (#998)Senthil Kumaran2017-04-052-19/+23
| | | (cherry picked from commit 257b980b316a5206ecf6c23b958e2b7c4df4f3de)
* Miscellaneous minor fixes of Misc/NEWS formatting. (#1002) (#1006)Serhiy Storchaka2017-04-051-9/+9
| | | (cherry picked from commit a0157b5f11e621f2196af4e918b9f07688a6cd1c)
* bpo-29725: DOC: add text for arraysize in sqlite3.Cursor (#947) (#986)Senthil Kumaran2017-04-031-0/+5
| | | (cherry picked from commit 02e12138000da834f23719521a011fa93763384d)
* Minor spell fix and formatting fixes in urllib tests. (#959) (#960)Senthil Kumaran2017-04-022-2/+6
| | | (cherry picked from commit efbd4ea65dbb9f87b1afeec6a760802756badee5)
* bpo-29941: Assert fixes (#886) (#956)T. Wouters2017-04-012-1/+7
| | | | | | | | | | Make a non-Py_DEBUG, asserts-enabled build of CPython possible. This means making sure helper functions are defined when NDEBUG is not defined, not just when Py_DEBUG is defined. Also fix a division-by-zero in obmalloc.c that went unnoticed because in Py_DEBUG mode, elsize is never zero. (cherry picked from commit a00c3fd12d421e41b769debd7df717d17b0deed5 and 06bb4873d6a9ac303701d08a851d6cd9a51e02a3)