PyType subtype,
PyObject[] args,
String[] keywords) {
return new Instantiable(subtype);
}
}, PyType.TYPE, "subinst", new PyTuple(new PyObject[] {type}), new PyDictionary());
Instantiable created = (Instantiable)instance.new_impl(true,
sub,
Py.EmptyObjects,
Py.NoKeywords);
assertEquals("new's init isn't called when a subtype comes in", 0, created.timesCalled);