summaryrefslogtreecommitdiff
path: root/tests/test_commands.py
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-02-25 20:16:51 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2024-02-25 20:16:51 +0100
commit2f4a229b7af6cbb4955ad57ed4769eab3f17bedc (patch)
tree0665db87db6c620ab54f88dc85aa181aa1aa18f5 /tests/test_commands.py
parent70ed1dcf05aa9cd7e3c03afd47625dc8a75ab556 (diff)
Remove compatibility helper for python < 3.8
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r--tests/test_commands.py9
1 files changed, 4 insertions, 5 deletions
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,