Parcourir la source

pygrass: Fix unittest not check the whole text on the exception, see mail: http://lists.osgeo.org/pipermail/grass-dev/2015-October/076858.html

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66666 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli il y a 9 ans
Parent
commit
649a418bb1
1 fichiers modifiés avec 1 ajouts et 7 suppressions
  1. 1 7
      lib/python/pygrass/vector/testsuite/test_geometry_attrs.py

+ 1 - 7
lib/python/pygrass/vector/testsuite/test_geometry_attrs.py

@@ -54,13 +54,7 @@ class GeometryAttrsTestCase(TestCase):
         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):