diff --git a/test/test_condensed_downloads.py b/test/test_condensed_downloads.py index 56004233c3..ee16c32f6c 100644 --- a/test/test_condensed_downloads.py +++ b/test/test_condensed_downloads.py @@ -2,16 +2,14 @@ # SPDX-License-Identifier: GPL-3.0-or-later """ -Condensed Downloads Test +Test to check if condensed downloads are committed """ import importlib import subprocess from test.test_data import __all__ as all_test_name -import pytest - -# Test to check condensed files are commited according to the package test data of checkers +# Test to check condensed files are committed according to the package test data of checkers def test_condensed_downloads(): test_data = list( map(lambda x: importlib.import_module(f"test.test_data.{x}"), all_test_name) @@ -30,8 +28,8 @@ def test_condensed_downloads(): stdout=subprocess.PIPE, ) - condensed_downloads = str(condensed_downloads.stdout)[2:-1].split("\\n") + condensed_downloads = condensed_downloads.stdout.decode("utf-8") assert all( item in condensed_downloads for item in package_names - ), "Condensed downloads not commited" + ), "Condensed downloads are not commited"