Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-enable the test on travis with a fix
  • Loading branch information
elpaso committed Jun 5, 2018
1 parent a8ce494 commit b97e835
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/src/python/provider_python.py
Expand Up @@ -62,6 +62,11 @@ def __init__(self, source, request):
self._transform = QgsCoordinateTransform()
if self._request.destinationCrs().isValid() and self._request.destinationCrs() != self._source._provider.crs():
self._transform = QgsCoordinateTransform(self._source._provider.crs(), self._request.destinationCrs(), self._request.transformContext())
try:
self._filter_rect = self.filterRectToSourceCrs(self._transform)
except QgsCsException as e:
self.close()
return
self._filter_rect = self.filterRectToSourceCrs(self._transform)
if not self._filter_rect.isNull():
self._select_rect_geom = QgsGeometry.fromRect(self._filter_rect)
Expand Down
1 change: 0 additions & 1 deletion tests/src/python/test_provider_python.py
Expand Up @@ -155,7 +155,6 @@ def testGetFeaturesNoGeometry(self):
"""
pass

@unittest.skipIf(os.environ.get("TRAVIS", False), "Skipped on Travis")
def testGetFeaturesDestinationCrs(self):
"""Skip this if on travis, passes locally and fails with no reason on Travis"""
super().testGetFeaturesDestinationCrs()
Expand Down

0 comments on commit b97e835

Please sign in to comment.