Special case the type object fail

Due to differences between PyPy and CPython the type object needs to be
special cased to raise a ValueError on PyPy as well as CPython.
1 file changed