summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Cardona <remi.cardona@logilab.fr>2015-06-25 19:23:10 +0200
committerRémi Cardona <remi.cardona@logilab.fr>2015-06-25 19:23:10 +0200
commit17e92a8ad000c7504e796ca7f55cc437a3234681 (patch)
tree97353e3447def27ce26778e12567e0f0e4d98422
parent6bfa06eb94af766516c3655e40896aee650d57a7 (diff)
downloadlogilab-common-17e92a8ad000c7504e796ca7f55cc437a3234681.tar.gz
[pytest] use method.__self__.__class__ instead of method.im_class
The latter does not exist in python 3. Related to #105845.
-rw-r--r--logilab/common/pytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/logilab/common/pytest.py b/logilab/common/pytest.py
index 58515a9..c0983ed 100644
--- a/logilab/common/pytest.py
+++ b/logilab/common/pytest.py
@@ -930,7 +930,7 @@ class SkipAwareTextTestRunner(unittest.TextTestRunner):
if tags_pattern is not None:
tags = getattr(test, 'tags', testlib.Tags())
if tags.inherit and isinstance(test, types.MethodType):
- tags = tags | getattr(test.im_class, 'tags', testlib.Tags())
+ tags = tags | getattr(test.__self__.__class__, 'tags', testlib.Tags())
return tags.match(tags_pattern)
return True # no pattern