From 2f4a229b7af6cbb4955ad57ed4769eab3f17bedc Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 25 Feb 2024 20:16:51 +0100 Subject: Remove compatibility helper for python < 3.8 --- tests/test_commands.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'tests/test_commands.py') diff --git a/tests/test_commands.py b/tests/test_commands.py index 17966b7..6606e5b 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1,6 +1,7 @@ import contextlib import io import os +import shutil import tempfile import unittest @@ -8,8 +9,6 @@ import hazwaz.unittest from lesana import command -from . import utils - class Args: def __init__(self, args): @@ -45,7 +44,7 @@ class CommandsMixin: class testCommandsSimple(hazwaz.unittest.HazwazTestCase, CommandsMixin): def setUp(self): self.tmpdir = tempfile.TemporaryDirectory() - utils.copytree( + shutil.copytree( 'tests/data/simple', self.tmpdir.name, dirs_exist_ok=True, @@ -141,7 +140,7 @@ class testCommandsSimple(hazwaz.unittest.HazwazTestCase, CommandsMixin): def test_export(self): with tempfile.TemporaryDirectory() as dest_tmpdir: - utils.copytree( + shutil.copytree( 'tests/data/simple', dest_tmpdir, dirs_exist_ok=True, @@ -197,7 +196,7 @@ class testCommandsSimple(hazwaz.unittest.HazwazTestCase, CommandsMixin): class testCommandsComplex(hazwaz.unittest.HazwazTestCase, CommandsMixin): def setUp(self): self.tmpdir = tempfile.TemporaryDirectory() - utils.copytree( + shutil.copytree( 'tests/data/complex', self.tmpdir.name, dirs_exist_ok=True, -- cgit v1.2.3