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:
parent
1ec3e5a776
commit
ea7561329f
1 changed files with 1 additions and 6 deletions
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue