def test_oldclass_newclass_construction():
 class nc(object, ):
  pass
 class oc:
  pass
 newType = type(oc).__new__(type(oc), 'foo', (nc, oc), {})
 AreEqual(type(newType), type)

def test_oldclass_newclass_construction ( ) : class nc ( object , ) : pass class oc : pass newType = type ( oc ) . __new__ ( type ( oc ) , 'foo' , ( nc , oc ) , { } ) AreEqual ( type ( newType ) , type )
calling __new__ on and old-class passing in new-classes should result in a new-style type .