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