Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Geometry testing, reduce default precision
  • Loading branch information
m-kuhn committed Mar 27, 2016
1 parent 7709f3f commit 3eb7f39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/testing/__init__.py
Expand Up @@ -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:
Expand All @@ -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,
Expand Down

0 comments on commit 3eb7f39

Please sign in to comment.