diff --git a/_pytest/python_api.py b/_pytest/python_api.py index 264d925c3..cb7d5e459 100644 --- a/_pytest/python_api.py +++ b/_pytest/python_api.py @@ -85,7 +85,7 @@ class ApproxNumpyBase(ApproxBase): assert not isinstance(cls, np.ndarray) if cls.subclass is None: - cls.subclass = type('ApproxNumpy', (ApproxNumpyBase, np.ndarray), {}) + cls.subclass = type('ApproxNumpy', (cls, np.ndarray), {}) return cls.subclass