diff options
Diffstat (limited to 'tests/test_osutils.py')
-rw-r--r-- | tests/test_osutils.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_osutils.py b/tests/test_osutils.py index 82959fe..5b5e742 100644 --- a/tests/test_osutils.py +++ b/tests/test_osutils.py @@ -141,9 +141,10 @@ class TestEnsureDirs: path.mkdir() path.chmod(0o750) - with mock.patch("snakeoil.osutils.os.chmod") as chmod, mock.patch( - "snakeoil.osutils.os.chown" - ) as chown: + with ( + mock.patch("snakeoil.osutils.os.chmod") as chmod, + mock.patch("snakeoil.osutils.os.chown") as chown, + ): chmod.side_effect = OSError(5, "Input/output error") # chmod failure when file exists and trying to reset perms to match |