Skip to content

Commit

Permalink
Writing shapefiles with Z dimensions is gdal version dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 9, 2016
1 parent 21702ba commit c825f46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/src/python/test_qgsvectorfilewriter.py
Expand Up @@ -25,6 +25,7 @@
)
from PyQt.QtCore import QDate, QTime, QDateTime, QVariant, QDir
import os
import osgeo.gdal
import platform
from qgis.testing import start_app, unittest
from utilities import writeShape, compareWkt
Expand Down Expand Up @@ -163,8 +164,8 @@ def testDateTimeWriteTabfile(self):
assert isinstance(f.attributes()[datetime_idx], QDateTime)
self.assertEqual(f.attributes()[datetime_idx], QDateTime(QDate(2014, 3, 5), QTime(13, 45, 22)))

# This test fails on Travis Linux build for unknown reason (probably GDAL version related)
@unittest.expectedFailure(os.environ.get('TRAVIS') and 'linux' in platform.system().lower())
# This test fails with GDAL version < 2
@unittest.expectedFailure(osgeo.gdal.VersionInfo()[:1] < 2)
def testWriteShapefileWithZ(self):
"""Check writing geometries with Z dimension to an ESRI shapefile."""

Expand Down

0 comments on commit c825f46

Please sign in to comment.