From 06bc54e706c15d3e45c8a6daeaf0c146ddaea70d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Thu, 4 Apr 2024 09:03:16 +0200 Subject: [PATCH] Fix string arguments to driver.submit() Typing dictates that this should be strings, not PosixPath --- tests/unit_tests/scheduler/test_local_driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/scheduler/test_local_driver.py b/tests/unit_tests/scheduler/test_local_driver.py index 1e07145711b..7488fbe2ef3 100644 --- a/tests/unit_tests/scheduler/test_local_driver.py +++ b/tests/unit_tests/scheduler/test_local_driver.py @@ -66,7 +66,7 @@ async def test_kill_unresponsive_process(monkeypatch, tmp_path): driver = LocalDriver() - await driver.submit(42, "/usr/bin/env", "bash", tmp_path / "script") + await driver.submit(42, "/usr/bin/env", "bash", str(tmp_path / "script")) assert await driver.event_queue.get() == StartedEvent(iens=42) # Allow the script to trap signals