Skip to content

Commit 735c255

Browse files
committed
Mark vector file writer test as expected to fail.
1 parent cbca984 commit 735c255

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/src/python/test_qgsvectorfilewriter.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
getQgisTestApp,
2929
TestCase,
3030
unittest,
31-
#expectedFailure
31+
expectedFailure
3232
)
3333
QGISAPP, CANVAS, IFACE, PARENT = getQgisTestApp()
3434

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

3838
mMemoryLayer = None
3939

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

60-
61-
def testWrite(self):
62-
"""Check we can write a vector file."""
63-
6462
myFileName = os.path.join(str(QDir.tempPath()), 'writetest.shp')
6563
print myFileName
6664
# Explicitly giving all options, not really needed but nice for clarity

0 commit comments

Comments
 (0)