Skip to content

Commit

Permalink
Correct test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 17, 2018
1 parent 141cadd commit 877efca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/providertestbase.py
Expand Up @@ -515,8 +515,8 @@ def testAddFeatureWrongGeomType(self):
self.assertFalse(result, 'Provider returned True to addFeatures with incorrect geometry type. Providers should reject these features.')

# make sure feature was not added
added = [f for f in l.dataProvider().getFeatures() if f['pk'] == 8]
self.assertTrue(added)
added = [f for f in l.dataProvider().getFeatures() if f['pk'] == 7]
self.assertFalse(added)

# yet providers MUST always accept null geometries
f3 = QgsFeature()
Expand Down

0 comments on commit 877efca

Please sign in to comment.