Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Feb 19, 2025
1 parent 4bc80ee commit b86256a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ci/on_push/test_others.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,12 @@ def test_custom_resamplings():
"20201220T104856_L8_200030_OLI_TIRS_window.geojson"
)

os.environ["EOREADER_BAND_RESAMPLING"] = str(Resampling.nearest)
prod = READER.open(prod_path, remove_tmp=True)
red_default = prod.load(RED, window=window_path, pixel_size=600)[RED]
# Don't set it with os.environ otherwise it'll break all the test suite!
with tempenv.TemporaryEnvironment(
{"EOREADER_BAND_RESAMPLING": str(Resampling.nearest)}
):
prod = READER.open(prod_path, remove_tmp=True)
red_default = prod.load(RED, window=window_path, pixel_size=600)[RED]

prod.clean_tmp()
red_nearest = prod.load(
Expand Down

0 comments on commit b86256a

Please sign in to comment.