Skip to content

Commit

Permalink
bootstrap: don't strip \n for last item on listing (#2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx authored Aug 26, 2024
1 parent 5558e78 commit 476f6e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _find_installed_libraries():

def _run_requirements():
logger.setLevel(logging.ERROR)
print("\n".join(_find_installed_libraries()), end="")
print("\n".join(_find_installed_libraries()))


def _run_install():
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-instrumentation/tests/test_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_run_cmd_print(self):
bootstrap.run()
self.assertEqual(
fake_out.getvalue(),
"\n".join(self.installed_libraries),
"\n".join(self.installed_libraries) + "\n",
)

@patch("sys.argv", ["bootstrap", "-a", "install"])
Expand Down

0 comments on commit 476f6e2

Please sign in to comment.