[Thuban-commits] r2901 - trunk/thuban/test

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jul 15 14:52:13 CEST 2011


Author: bricks
Date: 2011-07-15 14:52:13 +0200 (Fri, 15 Jul 2011)
New Revision: 2901

Modified:
   trunk/thuban/test/support.py
Log:
Add a support function to skip tests if gdal is not available


Modified: trunk/thuban/test/support.py
===================================================================
--- trunk/thuban/test/support.py	2011-07-15 12:51:18 UTC (rev 2900)
+++ trunk/thuban/test/support.py	2011-07-15 12:52:13 UTC (rev 2901)
@@ -382,3 +382,7 @@
         """Check whether the messages received match the list messages"""
         self.assertEquals(messages, self.received_messages)
 
+def skip_if_no_gdal():
+    import Thuban.Model.resource
+    if not Thuban.Model.resource.has_gdal_support():
+        raise SkipTest(Thuban.Model.resource.gdal_support_status)



More information about the Thuban-commits mailing list