Add a couple of tests for str.center with non-ASCII chars.
Merge str.center tests from 3.3.
#18403: fix an off-by-one typo noticed by Xue Fuqiao.
#18403: merge with 3.3.
gcmodule.c: strip trailing spaces
Issue #18408: PyObject_GC_NewVar() now raises SystemError exception if nitems
is negative
Issue #18408: Fix PyDict_New() to handle correctly new_keys_object() failure
(MemoryError).
Issue #18408: Fix list.pop() to handle list_resize() failure (MemoryError).
Issue #18408: Fix marshal reader for Unicode strings: handle
PyUnicode_DecodeUTF8() failure (ex: MemoryError).
Issue #18408: Fix PyType_Ready() and type.__bases__ setter to handle
PyWeakref_NewRef() failure (ex: MemoryError).
Issue #18408: Fix call_function() of ceval.c to handle PyTuple_New() failure
(in load_args()), ex: MemoryError.
fix indentation
Issue #18408: Fix _PyUnicodeWriter_Finish(): clear writer->buffer,
so _PyUnicodeWriter_Dealloc() can be called on the writer after finish.
Avoid spurious non-fatal install errors for OS X frameworks:
for a framework install, the python shared library is installed in
the frameworkinstallstructure target, not in altbininstall.