Run black code formatter
This commit is contained in:
parent
0b29f9eb30
commit
d6ecc6bbc3
@ -97,7 +97,7 @@ class Hierarchy(PathLike):
|
|||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
if not shutil.rmtree.avoids_symlink_attacks:
|
if not shutil.rmtree.avoids_symlink_attacks:
|
||||||
syslog.error(
|
syslog.error(
|
||||||
"shutil cannot avoid symlink attacks on this platform. Ignoring."
|
"shutil cannot avoid symlink attacks on this platform. Ignoring."
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -74,15 +74,15 @@ class TestHierarchyCleanup(unittest.TestCase):
|
|||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.patched_path = patch.multiple(
|
self.patched_path = patch.multiple(
|
||||||
Path,
|
Path,
|
||||||
exists=DEFAULT,
|
exists=DEFAULT,
|
||||||
mkdir=DEFAULT,
|
mkdir=DEFAULT,
|
||||||
symlink_to=DEFAULT,
|
symlink_to=DEFAULT,
|
||||||
touch=DEFAULT,
|
touch=DEFAULT,
|
||||||
unlink=DEFAULT,
|
unlink=DEFAULT,
|
||||||
)
|
)
|
||||||
self.patched_metadata = patch.multiple(
|
self.patched_metadata = patch.multiple(
|
||||||
Hierarchy, read_metadata=DEFAULT, write_metadata=DEFAULT
|
Hierarchy, read_metadata=DEFAULT, write_metadata=DEFAULT
|
||||||
)
|
)
|
||||||
self.patched_shutil = patch.multiple(f"{TESTING_MODULE}.shutil", rmtree=DEFAULT)
|
self.patched_shutil = patch.multiple(f"{TESTING_MODULE}.shutil", rmtree=DEFAULT)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user