summaryrefslogtreecommitdiff
path: root/nose/loader.py
diff options
context:
space:
mode:
authorJason Pellerin <jpellerin@gmail.com>2007-08-12 01:11:24 +0000
committerJason Pellerin <jpellerin@gmail.com>2007-08-12 01:11:24 +0000
commit65b2975d6c4e6af7a64725987a5838d3e71245e5 (patch)
tree17743fcce585c609e25aa0531c283717b7adfc6b /nose/loader.py
parent975d3d0889a9414fdc615de410bd9900ff5bb386 (diff)
downloadnose-65b2975d6c4e6af7a64725987a5838d3e71245e5.tar.gz
Merged 0.10.0-stable [282]:[308] into trunk
Diffstat (limited to 'nose/loader.py')
-rw-r--r--nose/loader.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nose/loader.py b/nose/loader.py
index 831733f..497f2cd 100644
--- a/nose/loader.py
+++ b/nose/loader.py
@@ -275,7 +275,7 @@ class TestLoader(unittest.TestLoader):
# Now, descend into packages
# FIXME can or should this be lazy?
- # is this syntax 2.3 (or 2.2) compatible?
+ # is this syntax 2.2 compatible?
paths = getattr(module, '__path__', [])
for path in paths:
tests.extend(self.loadTestsFromDir(path))
@@ -345,7 +345,7 @@ class TestLoader(unittest.TestLoader):
finally:
self.config.plugins.afterImport(
addr.filename, addr.module)
- except KeyboardInterrupt, SystemExit:
+ except (KeyboardInterrupt, SystemExit):
raise
except:
exc = sys.exc_info()
@@ -469,6 +469,7 @@ class TestLoader(unittest.TestLoader):
raise
except:
return Failure(*sys.exc_info())
+
if isinstance(obj, unittest.TestCase):
return obj
elif isclass(obj):