Further fixes when using type() when using -builtin to include module name
Using type() on a builtin type should include the package and module name, see http://docs.python.org/2/c-api/typeobj.html
This commit is contained in:
parent
d8bfe00e25
commit
4fb940d913
5 changed files with 23 additions and 2 deletions
|
|
@ -32,3 +32,7 @@ f.moo(1)
|
|||
|
||||
f = FooT_H()
|
||||
f.foo(Hi)
|
||||
|
||||
f_type = str(type(f))
|
||||
if f_type.find("'namespace_class.FooT_H'") == -1:
|
||||
raise RuntimeError("Incorrect type: " + f_type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue