From 7a1a439049c01630665aed04bbe18486f3eeda83 Mon Sep 17 00:00:00 2001 From: Kale Kundert Date: Tue, 4 Jul 2017 09:20:52 -0700 Subject: [PATCH] Use `cls` instead of `ApproxNumpyBase`. Slightly more general, probably doesn't make a difference. --- _pytest/python_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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