summaryrefslogtreecommitdiff
path: root/passlib/tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'passlib/tests/utils.py')
-rw-r--r--passlib/tests/utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/passlib/tests/utils.py b/passlib/tests/utils.py
index cd8d93c..34c56ba 100644
--- a/passlib/tests/utils.py
+++ b/passlib/tests/utils.py
@@ -155,6 +155,11 @@ class TestCase(unittest.TestCase):
def __unittest_skip__(cls):
return not getattr(cls, "__test__", True)
+ @classproperty
+ def __test__(cls):
+ #so nose won't auto run *this* cls, but it will for subclasses
+ return cls is not TestCase and not cls.__name__.startswith("_")
+
#============================================================
# tweak msg formatting for some assert methods
#============================================================