File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -569,15 +569,15 @@ def testRepackAtFirstSave(self):
569
569
ds = None
570
570
571
571
def testOpenWithFilter (self ):
572
- file_path = os .path .join (TEST_DATA_DIR , 'provider' )
572
+ file_path = os .path .join (TEST_DATA_DIR , 'provider' , 'shapefile.shp' )
573
573
uri = '{}|layerid=0|subset="name" = \' Apple\' ' .format (file_path )
574
574
# ensure that no longer required ogr SQL layers are correctly cleaned up
575
575
# we need to run this twice for the incorrect cleanup asserts to trip,
576
576
# since they are triggered only when fetching an existing layer from the ogr
577
577
# connection pool
578
578
for i in range (2 ):
579
579
vl = QgsVectorLayer (uri )
580
- self .assertTrue (vl .isValid ())
580
+ self .assertTrue (vl .isValid (), 'Layer not valid, iteration {}' . format ( i + 1 ) )
581
581
self .assertEqual (vl .featureCount (), 1 )
582
582
f = next (vl .getFeatures ())
583
583
self .assertEqual (f ['name' ], 'Apple' )
You can’t perform that action at this time.
0 commit comments