[GRASS-SVN] r66666 - grass/trunk/lib/python/pygrass/vector/testsuite

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 29 09:58:35 PDT 2015


Author: zarch
Date: 2015-10-29 09:58:35 -0700 (Thu, 29 Oct 2015)
New Revision: 66666

Modified:
   grass/trunk/lib/python/pygrass/vector/testsuite/test_geometry_attrs.py
Log:
pygrass: Fix unittest not check the whole text on the exception, see mail: http://lists.osgeo.org/pipermail/grass-dev/2015-October/076858.html

Modified: grass/trunk/lib/python/pygrass/vector/testsuite/test_geometry_attrs.py
===================================================================
--- grass/trunk/lib/python/pygrass/vector/testsuite/test_geometry_attrs.py	2015-10-29 16:49:16 UTC (rev 66665)
+++ grass/trunk/lib/python/pygrass/vector/testsuite/test_geometry_attrs.py	2015-10-29 16:58:35 UTC (rev 66666)
@@ -54,13 +54,7 @@
         with self.assertRaises(ValueError) as cm:
             self.attrs['not_existing_column_name']
 
-        self.assertEqual(cm.exception.message,
-                         u"The SQL is not correct:\n"
-                         u"'SELECT not_existing_column_name FROM "
-                         u"GeometryAttrsCase_map WHERE cat=1;',"
-                         u"\nvalues: None,\n"
-                         u"SQL error: no such column: "
-                         u"not_existing_column_name")
+        self.assertTrue(u"not_existing_column_name" in cm.exception.message)
 
 
     def test_setitem(self):



More information about the grass-commit mailing list