Bypass Python tests not supported by -builtin
Builtin types can't inherit from pure-python abstract bases
This commit is contained in:
parent
ab79441151
commit
49038b30b7
3 changed files with 10 additions and 7 deletions
|
|
@ -86,13 +86,6 @@ C_TEST_CASES += \
|
|||
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
BUILTIN_BROKEN = \
|
||||
python_abstractbase.cpptest \
|
||||
|
||||
BUILTIN_NOT_BROKEN = $(filter-out $(BUILTIN_BROKEN),$(NOT_BROKEN_TEST_CASES))
|
||||
|
||||
builtin-check : $(BUILTIN_NOT_BROKEN)
|
||||
|
||||
# Overridden variables here
|
||||
SCRIPTDIR = .
|
||||
LIBS = -L.
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ from collections import *
|
|||
|
||||
# This is expected to fail with -builtin option
|
||||
# Builtin types can't inherit from pure-python abstract bases
|
||||
if is_python_builtin():
|
||||
exit(0)
|
||||
|
||||
assert issubclass(Mapii, MutableMapping)
|
||||
assert issubclass(Multimapii, MutableMapping)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue