From 6572ff13316cca1274dbf8ae366fd8f50dc4d362 2021-10-29 19:19:08 From: Nikita Kniazev Date: 2021-10-29 19:19:08 Subject: [PATCH] Fix onlyif_cmds_exist skip message --- diff --git a/IPython/testing/decorators.py b/IPython/testing/decorators.py index a2458ce..3ea101c 100644 --- a/IPython/testing/decorators.py +++ b/IPython/testing/decorators.py @@ -376,7 +376,7 @@ def onlyif_cmds_exist(*commands): Decorator to skip test when at least one of `commands` is not found. """ for cmd in commands: - reason = "This test runs only if command '{cmd}' is installed" + reason = f"This test runs only if command '{cmd}' is installed" if not shutil.which(cmd): if os.environ.get("IPTEST_WORKING_DIR", None) is not None: return skip(reason)