changeset 161:c1d5474c3386

Make test not test itself.
author Arnaud Bergeron <abergeron@gmail.com>
date Thu, 25 Feb 2010 18:11:25 -0500
parents 68160fd149fe
children 050c7ff6b449
files test.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test.py	Thu Feb 25 17:27:49 2010 -0500
+++ b/test.py	Thu Feb 25 18:11:25 2010 -0500
@@ -5,7 +5,8 @@
     predefs = ift6266.__dict__
     for (_, name, ispkg) in pkgutil.walk_packages(ift6266.__path__, ift6266.__name__+'.'):
         if not ispkg:
-            if name.startswith('ift6266.scripts'):
+            if name.startswith('ift6266.scripts') or
+               name in ['ift6266.test']:
                 continue
             print "Testing:", name
             __import__(name)