changeset 157:e8c8022582f4

only exec the test if we are the main
author Frederic Bastien <bastienf@iro.umontreal.ca>
date Mon, 12 May 2008 16:22:10 -0400
parents f8a1ae7eb83e
children 90104343c665
files test_dataset.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/test_dataset.py	Mon May 12 16:13:48 2008 -0400
+++ b/test_dataset.py	Mon May 12 16:22:10 2008 -0400
@@ -436,9 +436,9 @@
 def test_ArrayFieldsDataSet():
     print "test_ArrayFieldsDataSet"
     raise NotImplementedError()
-
-test1()
-test_LookupList()
-test_ArrayDataSet()
-test_CacheDataSet()
+if __name__=='__main__':
+    test1()
+    test_LookupList()
+    test_ArrayDataSet()
+    test_CacheDataSet()
 #test pmat.py