Open olebole opened 6 years ago
It looks like it was OK for the setup script to write the test data originally, though? Before running the tests, this script: https://github.com/radio-astro-tools/spectral-cube/blob/master/spectral_cube/tests/data/make_test_cubes.py is run to generate the test data.
I suppose we can just allow PermissionError
s to solve this issue.
Yes, the test data was generated during the build of the package.
Just as an update for version 0.5.0: This error disappeared on its original place, however there is now a new case here:
IMO the new file name should be replaced by a tempfile as well.
When running the test suite, when spectral-cube is installed system-wide (in
/usr/lib/pythonX
), some tests fails since they try to write to the tests dir, which is not writable for normal users. This results in a failure of the CI test suite on Debian: