Skip to content

Commit 1bc2c70

Browse files
committed
Make python 3.11 and older happy
1 parent b4f398a commit 1bc2c70

File tree

1 file changed

+4
-2
lines changed
  • python/TestHarness/tests/resultsstore

1 file changed

+4
-2
lines changed

python/TestHarness/tests/resultsstore/common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,10 @@ def get_testharness_result(self, *args: str, **kwargs) -> dict:
147147
"""
148148
from TestHarness.tests.resultsstore.common import TESTHARNESS_RESULTS
149149

150-
key = f"args={','.join(args)},"
151-
key += f"kwargs={','.join([f"{k}={v}" for k, v in kwargs.items()])}"
150+
joined_args = ",".join(args)
151+
kv_kwargs = [f"{k}={v}" for k, v in kwargs.items()]
152+
joined_kwargs = ",".join(kv_kwargs)
153+
key = f"args={joined_args},kwargs={joined_kwargs}"
152154

153155
# Need to generate or load the results file on first call
154156
if key not in TESTHARNESS_RESULTS:

0 commit comments

Comments
 (0)