mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 04:15:11 +00:00
Fix RUF043: Use raw string and escape dot in regex pattern
This commit is contained in:
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user