[tests] Test case 'test_domain_cpp_build_semicolon' fails when run individually.
Describe the bug
Unit tests should not rely upon being run in any particular order; ideally they should test behaviours of the underlying code whether they run in the same order that they're declared in the test module, or any other arbitrary ordering.
By extension this means that it should be possible to run an individual unit test.
Currently at commit bf0bec3b4b8c019acad4a77a9e228de4e65b538b the test_domain_cpp_build_semicolon unit test fails when it is run individually.
How to Reproduce
This can be replicated by checking out the code at bf0bec3b4b8c019acad4a77a9e228de4e65b538b, installing the Python test dependencies, and running:
$ pytest tests/test_domains/test_domain_cpp.py -k semicolon
...
=========================== short test summary info ============================
FAILED tests/test_domains/test_domain_cpp.py::test_domain_cpp_build_semicolon - AssertionError: assert 1 == 0
====================== 1 failed, 115 deselected in 0.72s =======================
Environment Information
Platform: linux; (Linux-6.6.15-rt-amd64-x86_64-with-glibc2.37)
Python version: 3.11.8 (main, Feb 7 2024, 21:52:08) [GCC 13.2.0])
Python implementation: CPython
Sphinx version: 7.3.0+/bf0bec3b4
Docutils version: 0.20.1
Jinja2 version: 3.1.3
Pygments version: 2.17.2
Sphinx extensions
N/A
Additional context
Fixing this would contribute towards resolving #11285.
Ah yes, I know about this one. I've fixed it locally so let me find the patch today.
@picnixz did yo find which commit resolved it? :-)