Showing with 5 additions and 3 deletions.
  1. +4 −1 src/core/qgsvectorfilewriter.h
  2. +1 −2 tests/src/python/test_qgsvectorfilewriter.py
5 changes: 4 additions & 1 deletion src/core/qgsvectorfilewriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ class CORE_EXPORT QgsVectorFileWriter
);

/** Write contents of vector layer to an (OGR supported) vector formt
@note: this method was added in version 1.5*/
@note: this method was added in version 1.5
@param newFileName QString pointer which will contain the new file name created
(in case it is different to fileName).
*/
static WriterError writeAsVectorFormat( QgsVectorLayer* layer,
const QString& fileName,
const QString& fileEncoding,
Expand Down
3 changes: 1 addition & 2 deletions tests/src/python/test_qgsvectorfilewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class TestQgsVectorLayer(TestCase):

mMemoryLayer = None

@expectedFailure
def testWrite(self):
"""Check we can write a vector file."""
self.mMemoryLayer = QgsVectorLayer(
Expand Down Expand Up @@ -80,7 +79,7 @@ def testWrite(self):
myOptions,
myLayerOptions,
mySkipAttributesFlag)
assert myResult==QgsVectorFileWriter.NoError
assert myResult == QgsVectorFileWriter.NoError

if __name__ == '__main__':
unittest.main()