Only test python:abc feature when passing -py3 to swig
This commit is contained in:
parent
df30ae0f0b
commit
2d5c32048c
2 changed files with 10 additions and 0 deletions
|
|
@ -6,6 +6,10 @@ from collections import *
|
|||
if is_python_builtin():
|
||||
exit(0)
|
||||
|
||||
# Python abc is only turned on when -py3 option is passed to SWIG
|
||||
if not is_swig_py3:
|
||||
exit(0)
|
||||
|
||||
assert issubclass(Mapii, MutableMapping)
|
||||
assert issubclass(Multimapii, MutableMapping)
|
||||
assert issubclass(IntSet, MutableSet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue