Skip to content

t.rast.import: use platform-indendent tempdir default - #7742

Merged
ninsbl merged 16 commits into
OSGeo:mainfrom
ninsbl:t_rast_import_win
Jul 17, 2026
Merged

ninsbl merged 16 commits into
OSGeo:mainfrom
ninsbl:t_rast_import_win

Conversation

@ninsbl

@ninsbl ninsbl commented Jul 17, 2026

Copy link
Copy Markdown
Member

Tests were failing with OSGeo4W because /tmp was hardcoded as default for unpacking the archive.

This PR changes the default to gs.tempdir(). Users can still choose a different location.

This PR also addresses a bunch of ruff formating issues in stds_import.py and ports all t.rast/vect.import tests (both shell and gunittests) to pytest.
Test-porting was done with the help of AI.

When merged, this should reduce the number of failing tests on OSGeo4W.

@ninsbl
ninsbl requested a review from echoix July 17, 2026 08:44
@github-actions github-actions Bot added temporal Related to temporal data processing Python Related code is in Python libraries module tests Related to Test Suite labels Jul 17, 2026

@echoix echoix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine with the added changes, and still two notes, that can't really be fixed in here

Comment thread python/grass/temporal/stds_import.py Resolved
Comment thread python/grass/temporal/stds_import.py Resolved
@ninsbl
ninsbl enabled auto-merge (squash) July 17, 2026 21:34
@ninsbl
ninsbl merged commit b1701e5 into OSGeo:main Jul 17, 2026
26 checks passed
@ninsbl

ninsbl commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

The number of failed tests on Windows seems relatively constant (with 8 files failing). At the same time the number of tests got reduced (357 -> 353 files). Anyway, tests for t.rast.import / t.vect.import now pass fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

libraries module Python Related code is in Python temporal Related to temporal data processing tests Related to Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants