Skip to content

Commit

Permalink
Fix #780: only set im_class in Python 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jszakmeister committed Mar 19, 2014
1 parent 74cdf50 commit 43c35e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Under Development

- Fixed #782: Test failures with Python >= 3.3
Patch by Dmitry Shachnev.
- Fixed #780: Fix a regression with Python 3

1.3.1

Expand Down
3 changes: 2 additions & 1 deletion nose/pyversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43c35e4

Please sign in to comment.