aboutsummaryrefslogtreecommitdiffstats
path: root/packaging-tools/tests/test_packaging.py
diff options
context:
space:
mode:
Diffstat (limited to 'packaging-tools/tests/test_packaging.py')
-rwxr-xr-xpackaging-tools/tests/test_packaging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging-tools/tests/test_packaging.py b/packaging-tools/tests/test_packaging.py
index c31f33a59..b466d9f8e 100755
--- a/packaging-tools/tests/test_packaging.py
+++ b/packaging-tools/tests/test_packaging.py
@@ -141,8 +141,8 @@ class TestPackaging(unittest.TestCase):
idx = 0
for line in FileInput(temp_file, inplace=False):
- print(f"Received data: [{line.strip()}] expected data: [{expected_data[idx]}]")
- self.assertEqual(line.strip(), expected_data[idx], f"Received data: [{line}] differs from expected data: [{expected_data[idx]}]")
+ msg = f"Received data: [{line}] differs from expected data: [{expected_data[idx]}]"
+ self.assertEqual(line.strip(), expected_data[idx], msg)
idx += 1
finally:
rmtree(temp_dir)