| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
(GH-4720) (#4721)
The undecodable file name cannot be created on macOS APFS file systems.
(cherry picked from commit b3edde8dd44c878e9f039a2165d00ff075157d4b)
|
|
|
| |
(cherry picked from commit 29bc19321018ec6e58f9f4da9c18c42e9a9c580e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The original algorithm tried to delegate the folding to the tokens so
that those tokens whose folding rules differed could specify the
differences. However, this resulted in a lot of duplicated code because
most of the rules were the same.
The new algorithm moves all folding logic into a set of functions
external to the token classes, but puts the information about which
tokens can be folded in which ways on the tokens...with the exception of
mime-parameters, which are a special case (which was not even
implemented in the old folder).
This algorithm can still probably be improved and hopefully simplified
somewhat.
Note that some of the test expectations are changed. I believe the
changes are toward more desirable and consistent behavior: in general
when (re) folding a line the canonical version of the tokens is
generated, rather than preserving errors or extra whitespace.
(cherry picked from commit 85d5c18c9d83a1d54eecc4c2ad4dce63194107c6)
|
|
|
|
|
|
|
|
|
| |
Previously, CO_NOFREE was set in the compiler, which meant
it could end up being set incorrectly when code objects
were created directly. Setting it in the constructor based
on freevars and cellvars ensures it is always accurate,
regardless of how the code object is defined.
(cherry picked from commit 078f1814f1a4413a2a0fdb8cf4490ee0fc98ef34)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When PyGILState_Ensure() is called in a non-Python thread before
PyEval_InitThreads(), only call PyEval_InitThreads() after calling
PyThreadState_New() to fix a crash.
Add an unit test in test_embed.
Enhance also embedded tests, backport from master:
* Add test_pre_initialization_api()
* Set PYTHONIOENCODING environment variable in
test_forced_io_encoding()
(cherry picked from commit b4d1e1f7c1af6ae33f0e371576c8bcafedb099db)
|
|
|
|
|
|
|
| |
* Fixed saving bytearrays.
* Identical objects will be saved only once.
* Equal references will be load as identical objects.
* Added support for saving and loading recursive data structures.
(cherry picked from commit a897aeeef647259a938a36cb5eb6680c86021c6a)
|
|
|
|
|
|
| |
(GH-4080) (#4653)
with the persistent_id() and persistent_load() methods.
(cherry picked from commit 986375ebde0dd5ff2b7349e445a06bd28a3a8ee2)
|
|
|
|
| |
bpo-31705.
(cherry picked from commit 86afc1f2a7fb3afe00779c6426bc141bc795d9a3)
|
|
|
| |
Skip the test if PYTHONMALLOC environment variable is set.
|
|
|
| |
Remove a flakey test and rewrite another one for readability.
|
|
|
| |
(cherry picked from commit cc55e78acab93a495c974b9a2ea71c8bb9cc2f5d)
|
|
|
|
|
|
|
| |
(#4622)
characters/bytes for non-negative n. This makes it compatible with
read() methods of other file-like objects.
(cherry picked from commit 219c2de5ad0fdac825298bed1bb251f16956c04a)
|
|
|
|
|
| |
Currently, two tests fail with PYTHONASYNCIODEBUG=1 (or using -X
dev).
(cherry picked from commit 92f9339a58a613a56683510499509d1b702921a8)
|
|
|
| |
(cherry picked from commit afd055a59fe0291881fc2459215ce106e424da51)
|
|
|
|
|
|
| |
The NNTP server currently has troubles with SSL, whereas we don't
have the control on this server. This test blocks all CIs, so disable
it until a fix can be found.
(cherry picked from commit 706cb3162e15271ecfeba15909ed48a3a437009f)
|
|
|
|
|
|
|
|
|
| |
The previous behavior was to raise an exception
NotImplementedError: result of type 0
when the value of the property is VT_EMPTY.
(cherry picked from commit 19fb134185ce155bc53f517116fca73093ba55e9)
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, 'msilib.OpenDatabase()' function raised a
cryptical exception message when it couldn't open or
create an MSI file. For example:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
_msi.MSIError: unknown error 6e
(cherry picked from commit 4864a619dc1cc9092780ccf5a6327e8abf66133d)
|
|
|
| |
(cherry picked from commit 3df02dbc8e197053105f9dffeae40b04ec66766e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* bpo-31324: Optimize support._match_test() (#4421)
* Rename support._match_test() to support.match_test(): make it
public
* Remove support.match_tests global variable. It is replaced with a
new support.set_match_tests() function, so match_test() doesn't
have to check each time if patterns were modified.
* Rewrite match_test(): use different code paths depending on the
kind of patterns for best performances.
Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 803ddd8ce22f0de3ab42fb98a225a704c000ef06)
* bpo-31324: Fix test.support.set_match_tests(None) (#4505)
(cherry picked from commit bb11c3c967afaf263e00844d4ab461b7fafd6d36)
|
|
|
|
| |
(cherry picked from commit bdb8315c21825487b54852ff0511fb4881ea2181)
|
|
|
| |
(cherry picked from commit 6e3d6b5dc22cd06d8c4d44a38a8a3415e4bebb16)
|
|
|
|
|
| |
(#4411)
(cherry picked from commit 43605e6bfa8d49612df4a38460d063d6ba781906)
|
|
|
|
|
|
|
|
| |
TYPE_INT64 code from marshal." (GH-4381) (#4405)
Simplify the reverted code.
This reverts commit e9bbe8b87ba2874efba0474af5cc7d5941dbf742.
(cherry picked from commit 00987f6230fcdbecc8d9ab4b2b9fae8f99a1a4a9)
|
|
|
|
|
|
|
|
|
|
|
|
| |
(PyTraceBack_Print()). (GH-4289) (#4406)
* Setting sys.tracebacklimit to 0 or less now suppresses printing tracebacks.
* Setting sys.tracebacklimit to None now causes using the default limit.
* Setting sys.tracebacklimit to an integer larger than LONG_MAX now means using
the limit LONG_MAX rather than the default limit.
* Fixed integer overflows in the case of more than 2**31 traceback items on
Windows.
* Fixed output errors handling..
(cherry picked from commit edad8eebeee3c99e324a7f1ac5073167c2b0b54d)
|
|
|
|
|
| |
(#4403)
(cherry picked from commit 6545256df93ba54f811206107274cfa5a6d76b86)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
an… (GH-4386) (#4393)
* bpo-32015: Asyncio cycling during simultaneously socket read/write and reconnection
* Tests fix
* Tests fix
* News add
* Add new unit tests.
(cherry picked from commit e1d62e0b7cc842d6b75b4d480391f4a94e503255)
|
|
|
|
|
|
| |
(GH-4350) (#4380)
(cherry picked from commit 92c2ca7633c881a56157f2fb8b2e1b8c7114e5fb)
|
|
|
|
|
| |
(#4379)
(cherry picked from commit e0582a37c8d1776a2fd4968e9216f3a05f780276)
|
|
|
|
|
| |
(#4360)
(cherry picked from commit 5e0df74b3bc6391e9a7eba0fd84531ed99a78ae9)
|
|
|
|
|
| |
Python (GH-4176) (#4356)
(cherry picked from commit 191e993365ac3206f46132dcf46236471ec54bfa)
|
|
|
|
|
| |
waiting (GH-3813) (#4326)
(cherry picked from commit c62f0cb3b1f6f9ca4ce463b1c99b0543bdfa38d6)
|
|
|
|
|
|
| |
(GH-4314) (#4322)
* bpo-31970: Reduce performance overhead of asyncio debug mode..
(cherry picked from commit 921e9432a1461bbf312c9c6dcc2b916be6c05fa0)
|
|
|
|
|
| |
By accident the size of the empty dict keys object matched the
size of values array.
(cherry picked from commit 39a156c505b7dc431a0a4cffcbefca577848db38)
|
|
|
| |
(cherry picked from commit a7723d8b09f516a2b75837a3527b8cc7bee89fad)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#4262)
All Blake2 params have to be encoded in little-endian byte order. For
the two multi-byte integer params, leaf_length and node_offset, that
means that assigning a native-endian integer to them appears to work on
little-endian platforms, but gives the wrong result on big-endian. The
current libb2 API doesn't make that very clear, and @sneves is working
on new API functions in the GH issue above. In the meantime, we can work
around the problem by explicitly assigning little-endian values to the
parameter block.
See https://github.com/BLAKE2/libb2/issues/12.
(cherry picked from commit dcfb0e3c04f1b29a0d09bb0a81dcd5ee5a5fef1a)
|
|
|
|
|
|
|
|
|
|
|
| |
again if crashed (GH-3247) (#4254)
* bpo-31310: multiprocessing's semaphore tracker should be launched again if crashed
* Avoid mucking with process state in test.
Add a warning if the semaphore process died, as semaphores may then be leaked.
* Add NEWS entry
(cherry picked from commit cbe1756)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
necessary (GH-3246) (#4252)
* bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary.
* Fix test on Windows
* Add NEWS entry
* Adopt a different approach: ignore SIGINT and SIGTERM, as in semaphore tracker.
* Fix comment
* Make sure the test doesn't muck with process state
* Also test previously-started processes
* Update 2017-08-30-17-59-36.bpo-31308.KbexyC.rst
* Avoid masking SIGTERM in forkserver. It's not necessary and causes a race condition in test_many_processes..
(cherry picked from commit fc6b348b12ad401cab0261b7b71a65c60a08c0a8)
|
|
|
|
|
|
| |
netrc file format doesn't support quotes and escapes.
See https://linux.die.net/man/5/netrc
(cherry picked from commit b24cd055ecb3eea9a15405a6ca72dafc739e6531)
|
|
|
|
|
| |
(GH-4220) (#4221)
(cherry picked from commit 4f469c096628af730b17798d0ebfd8925bfde836)
|
|
|
|
|
|
|
| |
earlier. (GH-3826) (#4218)
Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken
in ncurses 5.7.
(cherry picked from commit 7e68790f3db75a893d5dd336e6201a63bc70212b)
|
|
|
| |
(cherry picked from commit 894ebd065e02debf20c0657d26020ecc42b7534f)
|
|
|
|
|
| |
bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to
fix the test on Travis CI.
(cherry picked from commit 280c22a82a6756e9caffef031c564fd98f1b50e7)
|
|
|
|
|
| |
InvalidFileException. (GH-4171) (#4192)
(cherry picked from commit db91e0fe2417f075693a194a492b1699829871e7)
|
|
|
| |
(cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)
|
|
|
|
|
|
|
| |
test_curses now saves/restores signals. On FreeBSD, the curses module
sets handlers of some signals, but don't restore old handlers when
the module is deinitialized.
(cherry picked from commit 19f68301a1295a9c30d9f28b8f1479cdcccd75aa)
|
| |
|
|
|
|
|
|
| |
rejecting (GH-4158) (#4162)
separators that are not bytes-like objects..
(cherry picked from commit a2314283ff87c65e1745a42c2f2b716b1a209128)
|
|
|
| |
(cherry picked from commit 5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a)
|
|
|
| |
(cherry picked from commit 7351f9e5a91c403d15c6d556f9989b443f1296f9)
|
|
|
|
|
| |
(#4135)
(cherry picked from commit 56d1f5ca32892c7643eb8cee49c40c1644f1abfe)
|