From 72cc4de8b266a846ddf4764be4a50d7c51e0b2e2 Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Tue, 28 Jun 2022 08:21:47 +0200 Subject: [PATCH] Revert "test ci" This reverts commit c8c3dd1752531023c1239a1cef0724f09bcf0d3a. --- tests/test_time_series.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/test_time_series.py b/tests/test_time_series.py index abd42e7..7815482 100644 --- a/tests/test_time_series.py +++ b/tests/test_time_series.py @@ -31,7 +31,6 @@ import os import unittest -from tempfile import mkstemp from tempfile import mkdtemp import pandas as pd @@ -56,10 +55,10 @@ def test_open_non_existing_file(): class OrthoMultiTest(unittest.TestCase): def setUp(self): - self.testfilename = mkstemp('.nc')[1] + self.testfilename = os.path.join(mkdtemp(), 'test.nc') - def tearDown(self): - os.remove(self.testfilename) +# def tearDown(self): +# os.remove(self.testfilename) def test_file_io_simple(self): @@ -293,7 +292,7 @@ def test_file_write_ts_attributes_for_each(self): class DatasetContiguousTest(unittest.TestCase): def setUp(self): - self.testfilename = mkstemp('.nc')[1] + self.testfilename = os.path.join(mkdtemp(), 'test.nc') def tearDown(self): os.remove(self.testfilename) @@ -361,7 +360,7 @@ def test_unlim_loc_file_writing(self): class DatasetIndexedTest(unittest.TestCase): def setUp(self): - self.testfilename = mkstemp('.nc')[1] + self.testfilename = os.path.join(mkdtemp(), 'test.nc') def tearDown(self): os.remove(self.testfilename)