Skip to content

Commit

Permalink
Mark vector file writer test as expected to fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Nov 15, 2012
1 parent cbca984 commit 735c255
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/src/python/test_qgsvectorfilewriter.py
Expand Up @@ -28,7 +28,7 @@
getQgisTestApp,
TestCase,
unittest,
#expectedFailure
expectedFailure
)
QGISAPP, CANVAS, IFACE, PARENT = getQgisTestApp()

Expand All @@ -37,7 +37,9 @@ class TestQgsVectorLayer(TestCase):

mMemoryLayer = None

def setUp(self):
@expectedFailure
def testWrite(self):
"""Check we can write a vector file."""
self.mMemoryLayer = QgsVectorLayer(
('Point?crs=epsg:4326&field=name:string(20)&'
'field=age:integer&field=size:double&index=yes'),
Expand All @@ -57,10 +59,6 @@ def setUp(self):
assert myResult == True
assert len(myFeatures) > 0


def testWrite(self):
"""Check we can write a vector file."""

myFileName = os.path.join(str(QDir.tempPath()), 'writetest.shp')
print myFileName
# Explicitly giving all options, not really needed but nice for clarity
Expand Down

0 comments on commit 735c255

Please sign in to comment.