PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/python/python_abstractbase_runme3.py

#
Python | 12 lines | 8 code | 2 blank | 2 comment | 0 complexity | 53135d7b8726a06826bb73d952ad8b9f MD5 | raw file
 1from python_abstractbase import *
 2from collections import *
 3
 4# This is expected to fail with -builtin option
 5# Builtin types can't inherit from pure-python abstract bases
 6
 7assert issubclass(Mapii, MutableMapping)
 8assert issubclass(Multimapii, MutableMapping)
 9assert issubclass(IntSet, MutableSet)
10assert issubclass(IntMultiset, MutableSet)
11assert issubclass(IntVector, MutableSequence)
12assert issubclass(IntList, MutableSequence)