Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information
nyalldawson committed Mar 29, 2018
1 parent 95d2a27 commit d9e9f2abac80258b6294bfa1efc74b00b2ed469a
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 d9e9f2a

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