bootstrap: don't strip \n for last item on listing (#2820)

This commit is contained in:
Riccardo Magliocchetti 2024-08-26 21:46:08 +02:00 committed by GitHub
parent 5558e78d8c
commit 476f6e245a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ def _find_installed_libraries():
def _run_requirements(): def _run_requirements():
logger.setLevel(logging.ERROR) logger.setLevel(logging.ERROR)
print("\n".join(_find_installed_libraries()), end="") print("\n".join(_find_installed_libraries()))
def _run_install(): def _run_install():

View File

@ -77,7 +77,7 @@ class TestBootstrap(TestCase):
bootstrap.run() bootstrap.run()
self.assertEqual( self.assertEqual(
fake_out.getvalue(), fake_out.getvalue(),
"\n".join(self.installed_libraries), "\n".join(self.installed_libraries) + "\n",
) )
@patch("sys.argv", ["bootstrap", "-a", "install"]) @patch("sys.argv", ["bootstrap", "-a", "install"])