diff options
author | kumar <kumar.mcmillan@gmail.com> | 2011-03-18 23:38:55 -0500 |
---|---|---|
committer | kumar <kumar.mcmillan@gmail.com> | 2011-03-18 23:38:55 -0500 |
commit | 16ad5c54468387d922c1f60cc134085a9f316f61 (patch) | |
tree | cf3df90387dcb574d08699a19b17753956561d85 /nose/proxy.py | |
parent | 47bb9a1425747975b82d08e19b18762e69026e47 (diff) | |
download | nose-16ad5c54468387d922c1f60cc134085a9f316f61.tar.gz |
fixes addSkip for python 3.2 (issue 382); also adds 3.2 tests
Diffstat (limited to 'nose/proxy.py')
-rw-r--r-- | nose/proxy.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nose/proxy.py b/nose/proxy.py index db21408..0d31d67 100644 --- a/nose/proxy.py +++ b/nose/proxy.py @@ -148,6 +148,9 @@ class ResultProxy(object): from nose.plugins.skip import SkipTest self.assertMyTest(test) plugins = self.plugins + if not isinstance(reason, Exception): + # for Python 3.2+ + reason = Exception(reason) plugins.addError(self.test, (SkipTest, reason, None)) self.result.addSkip(self.test, reason) |