Skip to content

Commit 92e4a1f

Browse files
committed
Update test.py
1 parent d4a063e commit 92e4a1f

File tree

1 file changed

+4
-9
lines changed
  • testsuite/ada_lsp/config_file

1 file changed

+4
-9
lines changed

Diff for: testsuite/ada_lsp/config_file/test.py

+4-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
configurationFile configuration option and have proper navigation
44
"""
55

6-
import e3
76
import subprocess
87
from drivers.pylsp import (
98
ALSLanguageClient,
@@ -19,13 +18,9 @@
1918
Location,
2019
)
2120

22-
if "windows" in e3.env.Env().build.platform:
23-
runtime = "light"
24-
else:
25-
runtime = "sjlj"
2621

27-
# create default.cgpr configuration file that will use not-native runtime
28-
subprocess.check_call(["gprconfig", "--batch", "--config=Ada,," + runtime + ",,GNAT"])
22+
# create default.cgpr configuration file that will use not-default runtime
23+
subprocess.check_call(["gprconfig", "--batch", "--config=Ada,,light,,GNAT"])
2924

3025

3126
@test()
@@ -48,7 +43,7 @@ async def do_testing(lsp: ALSLanguageClient) -> None:
4843
# Check result
4944
assert result
5045
assert isinstance(result, Location)
51-
assertEqual(runtime in result.uri, True)
46+
assertEqual("light" in result.uri, True)
5247

5348
# Check relative to root paths
5449
lsp.didChangeConfig(
@@ -68,4 +63,4 @@ async def do_testing(lsp: ALSLanguageClient) -> None:
6863
# Check result
6964
assert result
7065
assert isinstance(result, Location)
71-
assertEqual(runtime in result.uri, True)
66+
assertEqual("light" in result.uri, True)

0 commit comments

Comments
 (0)