summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/test_climat2.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/test_climat2.py b/tests/test_climat2.py
index cede642..c529d72 100644
--- a/tests/test_climat2.py
+++ b/tests/test_climat2.py
@@ -267,14 +267,7 @@ class TestCommandLineParallel(unittest.TestCase):
267 def test_different(self): 267 def test_different(self):
268 src = './tests/data/' 268 src = './tests/data/'
269 dst = './tests/data/parallel' 269 dst = './tests/data/parallel'
270 if sys.version_info >= (3, 8): 270 shutil.copytree(src, dst)
271 with os.scandir(src) as itr:
272 entries = list(itr)
273 shutil._copytree(entries=entries, src=src, dst=dst, symlinks=False,
274 ignore=None, copy_function=shutil.copy2,
275 ignore_dangling_symlinks=False)
276 else:
277 shutil.copytree(src, dst)
278 271
279 proc = subprocess.Popen(mat2_binary + glob.glob('./tests/data/parallel/dirty.*'), 272 proc = subprocess.Popen(mat2_binary + glob.glob('./tests/data/parallel/dirty.*'),
280 stdout=subprocess.PIPE) 273 stdout=subprocess.PIPE)
@@ -286,7 +279,7 @@ class TestCommandLineParallel(unittest.TestCase):
286 self.assertIsNotNone(p) 279 self.assertIsNotNone(p)
287 p = parser_factory.get_parser(p.output_filename) 280 p = parser_factory.get_parser(p.output_filename)
288 self.assertEqual(p.get_meta(), {}) 281 self.assertEqual(p.get_meta(), {})
289 shutil.rmtree('./tests/data/parallel') 282 shutil.rmtree('./tests/data/parallel/')
290 283
291 def test_faulty(self): 284 def test_faulty(self):
292 for i in range(self.iterations): 285 for i in range(self.iterations):