use round rather than floor
skip test on windows

uses namedtemporaryfile