summaryrefslogtreecommitdiff
path: root/dev-python/nose/files/nose-1.3.1-version.patch
blob: 8f6edb5be2ef3e3829e03507f53a35cdc96e3a59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
https://github.com/nose-devs/nose/commit/43c35e49106916f51f676455888fe7a39d030113.diff
diff --git a/nose/pyversion.py b/nose/pyversion.py
index fba5ada..8b56614 100644
--- a/nose/pyversion.py
+++ b/nose/pyversion.py
@@ -89,7 +89,8 @@ def __init__(self, cls, func):
         self.__dict__ = func.__dict__.copy()
         self._func = func
         self.__self__ = UnboundSelf(cls)
-        self.im_class = cls
+        if sys.version_info < (3, 0):
+            self.im_class = cls
 
     def address(self):
         cls = self.__self__.cls