do not attempt to execute base tests
The OF 1.3 match.MatchTest class was intended to just be a base class, but
since it inherits from unittest.TestCase it was being run as a test.
This change ignores test classes that don't include a runTest field.
diff --git a/oft b/oft
index 4ca4d64..28de9f7 100755
--- a/oft
+++ b/oft
@@ -270,7 +270,8 @@
# Find all testcases defined in the module
tests = dict((k, v) for (k, v) in mod.__dict__.items() if type(v) == type and
- issubclass(v, unittest.TestCase))
+ issubclass(v, unittest.TestCase) and
+ hasattr(v, "runTest"))
if tests:
for (testname, test) in tests.items():
# Set default annotation values