seismic-anisotropy / PyDRex

Simulate crystallographic preferred orientation evolution in polycrystals
https://seismic-anisotropy.github.io/PyDRex/
GNU General Public License v3.0
3 stars 2 forks source link

Use `tmp_path` fixture for more robust temporary files in tests #211

Closed adigitoleo closed 3 months ago

adigitoleo commented 3 months ago

I just found that pytest provides tmp_path which is probably a better way to handle tempfiles in tests compared to the current tempfile.NamedTemporaryFile approach, especially because the behaviour of tempfile classes is platform-dependent (mainly causing issues on Windows).