diff --git a/tests/transports/test_all_plugins.py b/tests/transports/test_all_plugins.py index f54a659c0..0d82ad2eb 100644 --- a/tests/transports/test_all_plugins.py +++ b/tests/transports/test_all_plugins.py @@ -1032,7 +1032,7 @@ def test_exec_pwd(custom_transport, remote_tmp_path): assert transport.isdir(subfolder_fullpath) - retcode, stdout, stderr = transport.exec_command_wait(f'ls {str(remote_tmp_path)}') + retcode, stdout, stderr = transport.exec_command_wait(f'ls {remote_tmp_path!s}') assert retcode == 0 assert stdout.strip() in subfolder_fullpath assert stderr == ''