Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 6, 2023
1 parent e7b4c2c commit 3fdeb07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/testing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ def checkLayersEqual(self, layer_expected, layer_result, use_asserts=False, **kw
result_wkt = layer_result.dataProvider().crs().toWkt(QgsCoordinateReferenceSystem.WKT_PREFERRED)

if use_asserts:
self.assertEqual(self, layer_expected.dataProvider().crs(), layer_result.dataProvider().crs())
self.assertEqual(layer_expected.dataProvider().crs(), layer_result.dataProvider().crs())
elif layer_expected.dataProvider().crs() != layer_result.dataProvider().crs():
return False

# Compare features
if use_asserts:
self.assertEqual(self, layer_expected.featureCount(), layer_result.featureCount())
self.assertEqual(layer_expected.featureCount(), layer_result.featureCount())
elif layer_expected.featureCount() != layer_result.featureCount():
return False

Expand Down

0 comments on commit 3fdeb07

Please sign in to comment.