diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-04-25 05:59:02 +1200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-04-25 05:59:02 +1200 |
commit | f71f1102eea9b095c001d8ea918660c9756873a5 (patch) | |
tree | ba261366ad69c221a049465c5da73868d850223c /testit | |
parent | 1448638a75aac754e71356094166739eac48b5c2 (diff) | |
download | dupfiles-f71f1102eea9b095c001d8ea918660c9756873a5.tar.gz |
Replace hardcoded list of tests with some introspection.
Diffstat (limited to 'testit')
-rwxr-xr-x | testit | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -92,11 +92,11 @@ class TwoHardlinksToSameContent(TestCase): def main(): - klasses = [ - DifferentFiles, - TwoIdenticalFiles, - TwoHardlinksToSameContent, - ] + klasses = [o + for name, o in globals().iteritems() + if type(o) == type(object) and + issubclass(o, TestCase) and + o != TestCase] for klass in klasses: test = klass() test.setUp() |