mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Some manual .format() -> f-strings
This commit is contained in:
parent
aefbe71765
commit
9000e9dd41
27 changed files with 133 additions and 173 deletions
|
|
@ -99,9 +99,7 @@ def test_log_and_exit(cap_out, mock_store_dir):
|
|||
|
||||
printed = cap_out.get()
|
||||
log_file = os.path.join(mock_store_dir, 'pre-commit.log')
|
||||
assert printed == (
|
||||
'msg: FatalError: hai\n' 'Check the log at {}\n'.format(log_file)
|
||||
)
|
||||
assert printed == f'msg: FatalError: hai\nCheck the log at {log_file}\n'
|
||||
|
||||
assert os.path.exists(log_file)
|
||||
with open(log_file) as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue