test: '{. -> ./mod}/test_util_rmrf.py'

Move the rmrf tests to the module-level tests and align its
implementation with the others.
This commit is contained in:
David Rheinsberg 2020-04-27 16:32:40 +02:00
parent 1ec3e5a776
commit ea7561329f

View file

@ -2,7 +2,6 @@
# Tests for the `osbuild.util.rmrf` module.
#
import os
import pathlib
import shutil
@ -10,7 +9,7 @@ import subprocess
import tempfile
import unittest
import osbuild.util.rmrf as rmrf
from osbuild.util import rmrf
def can_set_immutable():
@ -46,7 +45,3 @@ class TestUtilLinux(unittest.TestCase):
shutil.rmtree(f"{vartmpdir}/dir")
rmrf.rmtree(f"{vartmpdir}/dir")
if __name__ == "__main__":
unittest.main()