mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
adjust error outputs to be more standardized
This commit is contained in:
parent
48c60be15b
commit
b13ff9b868
6 changed files with 22 additions and 13 deletions
|
|
@ -55,7 +55,9 @@ def test_non_utf8_file(tmpdir):
|
|||
assert main((str(f_py),)) == 0
|
||||
|
||||
|
||||
def test_py37_breakpoint(tmpdir):
|
||||
def test_py37_breakpoint(tmpdir, capsys):
|
||||
f_py = tmpdir.join('f.py')
|
||||
f_py.write('def f():\n breakpoint()\n')
|
||||
assert main((str(f_py),)) == 1
|
||||
out, _ = capsys.readouterr()
|
||||
assert out == f'{f_py}:2:4: breakpoint called\n'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue