diff --git a/test/test_helpers.py b/test/test_helpers.py index 86e7124d6b2ba1d2ab6410888bc9735218e621a7..5e4246cbf86f9fbb59659a3d8003d421a055c9f3 100644 --- a/test/test_helpers.py +++ b/test/test_helpers.py @@ -154,14 +154,14 @@ class TestPrepareHost: with pytest.raises(OSError) as e: prepare_host() assert "unknown host 'NotExistingHostName'" in e.value.args[0] - if "runner-6HmDp9Qd-project-2411-concurrent" not in platform.node(): - mock_host.return_value = "linux-aa9b" - with pytest.raises(NotADirectoryError) as e: - prepare_host() - assert "does not exist for host 'linux-aa9b'" in e.value.args[0] - with pytest.raises(NotADirectoryError) as e: - prepare_host(False) - assert "does not exist for host 'linux-aa9b'" in e.value.args[0] + # if "runner-6HmDp9Qd-project-2411-concurrent" not in platform.node(): + mock_host.return_value = "linux-aa9b" + with pytest.raises(NotADirectoryError) as e: + prepare_host() + assert "does not exist for host 'linux-aa9b'" in e.value.args[0] + with pytest.raises(NotADirectoryError) as e: + prepare_host(False) + assert "does not exist for host 'linux-aa9b'" in e.value.args[0] @mock.patch("socket.gethostname", side_effect=["linux-aa9b", "ZAM144", "zam347", "jrtest", "jwtest", "runner-6HmDp9Qd-project-2411-concurrent"])