Staging
v0.5.1
https://github.com/python/cpython
Revision 6b48e658bf80b0e30fddd9dfe80021313e57fb6a authored by Miss Islington (bot) on 21 May 2019, 17:51:56 UTC, committed by GitHub on 21 May 2019, 17:51:56 UTC

* bpo-36929: Modify io/re tests to allow for missing mod name

For a vanishingly small number of internal types, CPython sets the
tp_name slot to mod_name.type_name, either in the PyTypeObject or the
PyType_Spec. There are a few minor places where this surfaces:

* Custom repr functions for those types (some of which ignore the
  tp_name in favor of using a string literal, such as _io.TextIOWrapper)
* Pickling error messages

The test suite only tests the former. This commit modifies the test
suite to allow Python implementations to omit the module prefix.

https://bugs.python.org/issue36929
(cherry picked from commit ccb7ca728e09b307f9e9fd36ec40353137e68a3b)

Co-authored-by: Max Bernstein <tekknolagi@users.noreply.github.com>
1 parent 3c9c2dc
History
Tip revision: 6b48e658bf80b0e30fddd9dfe80021313e57fb6a authored by Miss Islington (bot) on 21 May 2019, 17:51:56 UTC
bpo-36929: Modify io/re tests to allow for missing mod name (GH-13392)
Tip revision: 6b48e65
File Mode Size
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 1.6 KB
.gitignore -rw-r--r-- 1.5 KB
.travis.yml -rw-r--r-- 6.1 KB
CODE_OF_CONDUCT.rst -rw-r--r-- 631 bytes
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 62.2 KB
README.rst -rw-r--r-- 9.9 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 491.6 KB
configure.ac -rw-r--r-- 163.7 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 42.2 KB
setup.py -rw-r--r-- 99.7 KB

README.rst

back to top