Skip to content
Permalink
Browse files

Fix tests

(cherry-picked from d9e9f2a)
  • Loading branch information
nyalldawson committed Apr 2, 2018
1 parent d88ffc6 commit e863dc669b200c55f750fac803818ccb8b15aebf
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/core/qgsvectorfilewritertask.cpp
  2. +2 −2 tests/src/python/test_qgsvectorfilewritertask.py
@@ -47,7 +47,7 @@ void QgsVectorFileWriterTask::cancel()

bool QgsVectorFileWriterTask::run()
{
if ( !mError != QgsVectorFileWriter::NoError )
if ( mError != QgsVectorFileWriter::NoError )
return false;

connect( mOptions.feedback, &QgsFeedback::progressChanged, this, &QgsVectorFileWriterTask::setProgress );
@@ -97,8 +97,8 @@ def testLayerRemovalBeforeRun(self):
while not self.success and not self.fail:
QCoreApplication.processEvents()

self.assertFalse(self.success)
self.assertTrue(self.fail)
self.assertTrue(self.success)
self.assertFalse(self.fail)

def testNoLayer(self):
"""test that failure (and not crash) occurs when no layer set"""

0 comments on commit e863dc6

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