diff options
author | Rémi Cardona <remi.cardona@logilab.fr> | 2015-06-25 19:23:10 +0200 |
---|---|---|
committer | Rémi Cardona <remi.cardona@logilab.fr> | 2015-06-25 19:23:10 +0200 |
commit | 17e92a8ad000c7504e796ca7f55cc437a3234681 (patch) | |
tree | 97353e3447def27ce26778e12567e0f0e4d98422 /logilab | |
parent | 6bfa06eb94af766516c3655e40896aee650d57a7 (diff) | |
download | logilab-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.
Diffstat (limited to 'logilab')
-rw-r--r-- | logilab/common/pytest.py | 2 |
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 |