mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
some updates and fixes
Didn't get around to it in my previous attempt, so doing it now. - updated deprecated .warn() to .warning() - unnecessary f-strings - imported sys to allow sys.exit calls instead of exit - simplified some not checks - replaced type with isinstance -
This commit is contained in:
parent
6896025288
commit
43e9a86394
5 changed files with 25 additions and 24 deletions
|
|
@ -201,7 +201,7 @@ def test_error_handler_read_only_filesystem(mock_store_dir, cap_out, capsys):
|
|||
# already been set up
|
||||
Store()
|
||||
|
||||
write = (stat.S_IWGRP | stat.S_IWOTH | stat.S_IWUSR)
|
||||
write = stat.S_IWGRP | stat.S_IWOTH | stat.S_IWUSR
|
||||
os.chmod(mock_store_dir, os.stat(mock_store_dir).st_mode & ~write)
|
||||
|
||||
with pytest.raises(SystemExit):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue