xcube-dev / xcube

xcube is a Python package for generating and exploiting data cubes powered by xarray, dask, and zarr.
https://xcube.readthedocs.io/
MIT License
201 stars 20 forks source link

Two coverages unit tests failing under Windows #937

Closed pont-us closed 8 months ago

pont-us commented 8 months ago

Describe the bug

As reported by @forman : two tests in webapi.ows.coverages.test_controllers are failing on Windows (only):

test_get_coverage_datetime_no_time -> Permission error raised in with tempfile.TemporaryDirectory() as tempdir

test_get_coverage_rangetype_for_dataset -> image_2024_03_04T16_16_35_218Z

To Reproduce Steps to reproduce the behavior:

  1. Check out current xcube master branch ( c149bcf3293 )
  2. Run test suite in a Windows Python environment
  3. Observe the two test failures described above

Expected behavior All tests pass.

Additional context Tests pass in CI environments and in a local Linux environment.

pont-us commented 8 months ago

Diagnosis: