Skip to content
Permalink
Browse files

Geometry testing, reduce default precision

  • Loading branch information
m-kuhn committed Mar 27, 2016
1 parent 7709f3f commit 3eb7f392817ce99e6769464fa2bf03d7088225b2
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/testing/__init__.py
@@ -71,7 +71,7 @@ def assertLayersEqual(self, layer_expected, layer_result, **kwargs):
try:
precision = compare['geometry']['precision']
except KeyError:
precision = 17
precision = 14

for feats in zip(layer_expected.getFeatures(request), layer_result.getFeatures(request)):
if feats[0].geometry() is not None:
@@ -82,7 +82,7 @@ def assertLayersEqual(self, layer_expected, layer_result, **kwargs):
geom1 = feats[1].geometry().geometry().asWkt(precision)
else:
geom1 = None
_TestCase.assertEqual(
_TestCase.assertEquals(
self,
geom0,
geom1,

0 comments on commit 3eb7f39

Please sign in to comment.
You can’t perform that action at this time.