summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/munittest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/munittest.py b/test/munittest.py
index f99b0d9..2a7eaf8 100644
--- a/test/munittest.py
+++ b/test/munittest.py
@@ -608,7 +608,7 @@ class TestLoader:
issubclass(obj, unittest.TestCase)):
return self.loadTestsFromTestCase(obj)
elif isinstance(obj, types.UnboundMethodType):
- return obj.im_class(obj.__name__)
+ return obj.__self__.__class__(obj.__name__)
elif callable(obj):
test = obj()
if not isinstance(test, unittest.TestCase) and \