Skip to content
Permalink
Browse files

Mark vector file writer test as expected to fail.

  • Loading branch information
timlinux committed Nov 15, 2012
1 parent cbca984 commit 735c25520c86117973c1cc40316dc84bcfeaac6a
Showing with 4 additions and 6 deletions.
  1. +4 −6 tests/src/python/test_qgsvectorfilewriter.py
@@ -28,7 +28,7 @@
getQgisTestApp,
TestCase,
unittest,
#expectedFailure
expectedFailure
)
QGISAPP, CANVAS, IFACE, PARENT = getQgisTestApp()

@@ -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'),
@@ -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

0 comments on commit 735c255

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