Fix RUF043: Use raw string and escape dot in regex pattern

This commit is contained in:
Bracken Spencer committed 2025-12-07 19:43:44 +01:00
1 parent 4cc0cabcb7
commit 3b83c66fa6
1 file changed
+1 -1
+1 -1
View File
@@ -213,7 +213,7 @@ class TestFSharpLanguageServerSetup:
def test_runtime_dependency_setup_without_dotnet(self) -> None:
"""Test that setup fails gracefully when .NET is not installed."""
with patch("shutil.which", return_value=None):
with pytest.raises(RuntimeError, match=".NET SDK is not installed"):
with pytest.raises(RuntimeError, match=r"\.NET SDK is not installed"):
FSharpLanguageServer._setup_runtime_dependencies(Mock(), Mock(), Mock())
def test_runtime_dependency_setup_with_dotnet(self) -> None: