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:
William S Fulton 2014-03-01 23:24:59 +00:00
commit 4fb940d913
5 changed files with 23 additions and 2 deletions

View file

@ -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)