Skip to content

Commit 2c55326

Browse files
committed
Improving test platform independence
1 parent 83445af commit 2c55326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/src/python/test_qgsdelimitedtextprovider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def delimitedTextData( testname, filename, requests, verbose, **params ):
155155
basename = os.path.basename(filepath)
156156
if not basename.startswith('test'):
157157
basename='file'
158-
uri = uri.replace(filepath,basename)
158+
uri = re.sub(r'^file\:\/\/[^\?]*','file://'+basename,uri)
159159
fields = []
160160
data = {}
161161
if layer.isValid():

0 commit comments

Comments
 (0)