running test: SyntaxError: f-string: unmatched '('
Open
Nobody has claimed this yet.
- Dominant language
- Ada
- Stars
- 94
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
> python3.11 testsuite/testsuite.py --with-python=python3.11 testsuite/tests/lkt/import/invalid/ INFO Found 1 tests
INFO FAIL lkt__import__invalid: non-zero status code
_Running: /usr/local/bin/python3.11 /usr/home/saper/src/ada/langkit/testsuite/python_support/lkt_compile.py (cwd=/tmp/tmpro9itzdt/lkt__import__invalid)
_Status code: 1
_Output:
_Traceback (most recent call last):
_ File "/usr/home/saper/src/ada/langkit/testsuite/python_support/lkt_compile.py", line 16, in <module>
_ from utils import derive_config, emit_and_print_errors, python_support_dir
_ File "/usr/home/saper/src/ada/langkit/testsuite/python_support/utils.py", line 477
_ f"--native-compiler-options=-I{m.dirs.build_dir("src")}",
_ ^^^
_SyntaxError: f-string: unmatched '('
_
INFO Summary:
_ FAIL 1
Introduced in 565f495544b24df02403d29f5519a1ed73a9952f and the code has never been run?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The syntax error is in testsuite/python_support/utils.py at line 477, in the f-string calling m.dirs.build_dir("src"). Start by inspecting that expression and run the reported testsuite command for testsuite/tests/lkt/import/invalid/. Done means the test compiles past the SyntaxError and the invalid-import test produces its expected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100