From 9009fa69dc0a062d2ecf6819e8ca973a044e401c Mon Sep 17 00:00:00 2001 From: Seung Hyun Kim Date: Mon, 11 Jul 2022 01:17:47 -0500 Subject: [PATCH] test: remove unsupported f-string format --- elastica/callback_functions.py | 4 +++- tests/test_callback_functions.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/elastica/callback_functions.py b/elastica/callback_functions.py index 098f5052b..976458e7d 100644 --- a/elastica/callback_functions.py +++ b/elastica/callback_functions.py @@ -144,7 +144,9 @@ def __init__( # Assertions MIN_STEP_SKIP = 100 if step_skip <= MIN_STEP_SKIP: - logging.warning(f"We recommend ({step_skip=}) at least {MIN_STEP_SKIP}") + logging.warning( + f"We recommend (step_skip={step_skip}) at least {MIN_STEP_SKIP}" + ) assert ( method in ExportCallBack.AVAILABLE_METHOD ), f"The exporting method ({method}) is not supported. Please use one of {ExportCallBack.AVAILABLE_METHOD}." diff --git a/tests/test_callback_functions.py b/tests/test_callback_functions.py index 6dbd7b47a..80300b14d 100644 --- a/tests/test_callback_functions.py +++ b/tests/test_callback_functions.py @@ -126,7 +126,7 @@ def test_export_call_back_small_stepsize_warning(self, caplog, step_skip): assert record_tuple[0] == "root" assert record_tuple[1] == logging.WARNING assert str(100) in record_tuple[2] - assert f"recommend ({step_skip=}) at least" in record_tuple[2] + assert f"recommend (step_skip={step_skip}) at least" in record_tuple[2] def test_export_call_back_file_recreate_warning(self, caplog): mock_rod = MockRodWithElements(5)