summaryrefslogtreecommitdiff
path: root/nose/proxy.py
diff options
context:
space:
mode:
authorkumar <kumar.mcmillan@gmail.com>2011-03-18 23:38:55 -0500
committerkumar <kumar.mcmillan@gmail.com>2011-03-18 23:38:55 -0500
commit16ad5c54468387d922c1f60cc134085a9f316f61 (patch)
treecf3df90387dcb574d08699a19b17753956561d85 /nose/proxy.py
parent47bb9a1425747975b82d08e19b18762e69026e47 (diff)
downloadnose-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.py3
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)