Skip to content

Commit

Permalink
Merge pull request #59877 from qgis/backport-59870-to-release-3_40
Browse files Browse the repository at this point in the history
[Backport release-3_40] Fix fragileness in test if run after some other tests
  • Loading branch information
alexbruy authored Dec 13, 2024
2 parents d73525d + 0797e9c commit ac3faf3
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/src/python/test_qgsfileutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,16 @@ def test_sidecar_files_for_path(self):
QgsFileUtils.sidecarFilesForPath(f"{unitTestDataPath()}/landsat2.nc"),
{f"{unitTestDataPath()}/landsat2.nc.aux.xml"},
)
# tif
# tif -- ignore .aux.xml, which may/may not be present for this particular
# file (it's not checked into git, but can be generated locally)
self.assertEqual(
QgsFileUtils.sidecarFilesForPath(
f"{unitTestDataPath()}/ALLINGES_RGF93_CC46_1_1.tif"
),
{
f
for f in QgsFileUtils.sidecarFilesForPath(
f"{unitTestDataPath()}/ALLINGES_RGF93_CC46_1_1.tif"
)
if not ".aux.xml" in f
},
{f"{unitTestDataPath()}/ALLINGES_RGF93_CC46_1_1.tfw"},
)

Expand Down

0 comments on commit ac3faf3

Please sign in to comment.