aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitrii Agibov <dmitrii.agibov@arm.com>2022-09-16 13:34:35 +0100
committerDmitrii Agibov <dmitrii.agibov@arm.com>2022-09-20 16:51:58 +0100
commitc4ad3da5c63abb506833303564bd53e200ee8d97 (patch)
tree99d3d8f8cbe6068241dd49e3da80594b85793f26 /tests
parent61684f9a4691449dc8aa129976789e3feab2b713 (diff)
downloadmlia-c4ad3da5c63abb506833303564bd53e200ee8d97.tar.gz
Make python syntax consistent across codebase
- Use pyupgrade tool for the syntax upgrade Change-Id: I3b9ae6cc5da193329e37028cde967ae049388361
Diffstat (limited to 'tests')
-rw-r--r--tests/test_backend_output_consumer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_backend_output_consumer.py b/tests/test_backend_output_consumer.py
index 2ecb07f..2a46787 100644
--- a/tests/test_backend_output_consumer.py
+++ b/tests/test_backend_output_consumer.py
@@ -79,9 +79,9 @@ def test_base64_output_consumer(expected_metrics: dict) -> None:
json_b64 = base64.b64encode(json_str.encode("utf-8"))
return (
OUTPUT_MATCH_ALL # Should not be matched by the Base64OutputConsumer
- + f"<{Base64OutputConsumer.TAG_NAME}>".encode("utf-8")
+ + f"<{Base64OutputConsumer.TAG_NAME}>".encode()
+ bytearray(json_b64)
- + f"</{Base64OutputConsumer.TAG_NAME}>".encode("utf-8")
+ + f"</{Base64OutputConsumer.TAG_NAME}>".encode()
+ OUTPUT_NO_MATCH # Just to add some difficulty...
)