Skip to content

Commit

Permalink
main: add line between backend output and missing dependencies error
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 committed Aug 1, 2021
1 parent 79e7774 commit 7ed0a6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/build/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _build_in_current_env(
missing = builder.check_dependencies(distribution)
if missing:
dependencies = ''.join('\n\t' + dep for deps in missing for dep in (deps[0], _format_dep_chain(deps[1:])) if dep)
_error(f'Missing dependencies:{dependencies}')
_error(f'\nMissing dependencies:{dependencies}')

return builder.build(distribution, outdir, config_settings or {})

Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_build_no_isolation_with_check_deps(mocker, test_flit_path, missing_deps
build.__main__.build_package(test_flit_path, '.', ['sdist'], isolation=False)

build_cmd.assert_called_with('sdist', '.', {})
error.assert_called_with('Missing dependencies:' + output)
error.assert_called_with('\nMissing dependencies:' + output)


@pytest.mark.isolated
Expand Down

0 comments on commit 7ed0a6b

Please sign in to comment.