aewallin / allantools

Allan deviation and related time & frequency statistics library in Python
GNU Lesser General Public License v3.0
222 stars 76 forks source link

test_dataset.py fails on Windows #103

Closed aewallin closed 5 years ago

aewallin commented 5 years ago

after #102 we have travis-testing on windows, and this shows how python's tempfile works differently on unix and windows.

the failing test is at: https://travis-ci.org/aewallin/allantools/jobs/566840757

there is discussion on tempfile at: https://stackoverflow.com/questions/23212435/permission-denied-to-write-to-my-temporary-file

the problem seems to be that the call to tempfile already opens the file, and on windows it is an error to open the same file twice.