Open mgorny opened 7 months ago
I think this is a documented difference, see https://doc.pypy.org/en/latest/cpython_differences.html#subclasses-of-built-in-types
I think this is a documented difference, see https://doc.pypy.org/en/latest/cpython_differences.html#subclasses-of-built-in-types
This does explain the test_custom_object_dict
failure.
The test_safe_name_samples
failure is coming from the fact that list.__mul__ is list.__rmul__
so list.__mul__.__name__ == '__rmul__'
which isn't crazy or super important but feels a bit odd at least.
Fixing that leads to another error which seems less justified:
>>>> dict.__dict__['fromkeys'].__name__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'classmethod' object has no attribute '__name__'. Did you mean: '__ne__'?
When running the test suite against PyPy3.10, I'm getting the following failures:
CC @mattip, perhaps PyPy is doing something weird here.