2024-12-27 18:19:53.418 [debug] Found cached env for /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python
2024-12-27 18:19:53.771 [debug] Testing: Trigger refresh after saving /u/ks/src/myproject/tests/convert/test_convert_command.py
2024-12-27 18:19:54.026 [debug] Delay Trigger[Refresh Test Data]: triggered=12, called=12
2024-12-27 18:19:54.026 [info] Discover tests for workspace name: myproject - uri: /u/ks/src/myproject/tests/convert/test_convert_command.py
2024-12-27 18:19:54.026 [debug] Found cached env for /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python
2024-12-27 18:19:54.026 [debug] could not find a pixi interpreter for the interpreter at /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python
2024-12-27 18:19:54.028 [debug] Activation Commands received source /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/activate for shell bash, resource /u/ks/src/myproject and interpreter /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python
2024-12-27 18:19:54.028 [debug] Activating Environment to capture Environment variables, . /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/printEnvVariables.py
2024-12-27 18:19:54.028 [info] > . ~/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/printEnvVariables.py
2024-12-27 18:19:54.028 [info] shell: bash
2024-12-27 18:19:54.083 [info] > ~/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python ~/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/run_adapter.py discover pytest -- --rootdir . -s --cache-clear
2024-12-27 18:19:54.083 [info] cwd: .
2024-12-27 18:19:54.366 [error] Error discovering pytest tests:
n [Error]: ============================= test session starts ==============================
platform darwin -- Python 3.12.4, pytest-8.3.4, pluggy-1.5.0
rootdir: /u/ks/src/myproject
configfile: pyproject.toml
plugins: describe-2.2.0, cov-6.0.0, spec-4.0.0, mock-3.14.0
The Python extension has run into an unexpected situation
while processing a pytest node during test discovery. Please
Please open an issue at:
https://github.com/microsoft/vscode-python/issues
and paste the following output there.
nodeid: tests/convert/test_convert_command.py::describe_convert_command::describe_init::with_format_go_licenses::with_invalid_file_format::it_raises_a_value_error
kind: ('function', False)
class: Function
name: it_raises_a_value_error
fspath: /u/ks/src/myproject/tests/convert/test_convert_command.py
location: ('tests/convert/test_convert_command.py', 53, 'it_raises_a_value_error')
function: <function describe_convert_command.<locals>.describe_init.<locals>.with_format_go_licenses.<locals>.with_invalid_file_format.<locals>.it_raises_a_value_error at 0x106c56a20>
markers: []
user_properties: []
attrnames: ['_ALLOW_MARKERS', '__abstractmethods__', '__annotations__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', '__weakref__', '_abc_impl', '_check_item_and_collector_diamond_inheritance', '_fixtureinfo', '_getinstance', '_getobj', '_initrequest', '_instance', '_nodeid', '_obj', '_pyfuncitem', '_pytest_diamond_inheritance_warning_shown', '_report_sections', '_repr_failure_py', '_request', '_store', '_traceback_filter', 'add_marker', 'add_report_section', 'addfinalizer', 'cls', 'config', 'extra_keyword_matches', 'fixturenames', 'from_parent', 'fspath', 'funcargs', 'function', 'get_closest_marker', 'getmodpath', 'getparent', 'ihook', 'instance', 'iter_markers', 'iter_markers_with_node', 'iter_parents', 'keywords', 'listchain', 'listextrakeywords', 'listnames', 'location', 'module', 'name', 'nextitem', 'nodeid', 'obj', 'originalname', 'own_markers', 'parent', 'path', 'reportinfo', 'repr_failure', 'runtest', 'session', 'setup', 'stash', 'teardown', 'user_properties', 'warn']
extra info:
fullname: it_raises_a_value_error
testfunc: describe_convert_command.describe_init.with_format_go_licenses.with_invalid_file_format.it_raises_a_value_error
parameterized:
traceback:
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/run_adapter.py", line 18, in <module>
main(tool, cmd, subargs, toolargs)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/__main__.py", line 96, in main
parents, result = run(toolargs, **subargs)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 29, in discover
ec = _pytest_main(pytestargs, [_plugin])
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/config/__init__.py", line 175, in main
ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main
return wrap_session(config, _main)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 283, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 336, in _main
config.hook.pytest_collection(session=session)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 347, in pytest_collection
session.perform_collect()
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 812, in perform_collect
hook.pytest_collection_modifyitems(
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 86, in pytest_collection_modifyitems
test, parents = self.parse_item(item)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 71, in parse_item
return parse_item(item)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_pytest_item.py", line 182, in parse_item
raise should_never_reach_here(
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_pytest_item.py", line 130, in should_never_reach_here
traceback.print_stack()
collected 71 items
<Dir myproject>
<Package tests>
<Dir convert>
<Module test_convert_command.py>
<DescribeBlock 'describe_convert_command'>
<DescribeBlock 'describe_init'>
<DescribeBlock 'with_format_go_licenses'>
<DescribeBlock 'with_invalid_file_format'>
<Function it_raises_a_value_error>
<DescribeBlock 'with_missing_required_fields'>
<Function it_raises_a_value_error>
<DescribeBlock 'with_valid_content'>
<Function it_returns_correct_licenses>
...some more modules listed
<DescribeBlock 'with_whitelisted_package'>
<Function it_returns_false>
<Function it_has_warnings>
The Python extension has run into an unexpected situation
while processing a pytest node during test discovery. Please
Please open an issue at:
https://github.com/microsoft/vscode-python/issues
and paste the following output there.
nodeid: tests/convert/test_convert_command.py::describe_convert_command::describe_init::with_format_go_licenses::with_invalid_file_format::it_raises_a_value_error
kind: ('function', False)
class: Function
name: it_raises_a_value_error
fspath: /u/ks/src/myproject/tests/convert/test_convert_command.py
location: ('tests/convert/test_convert_command.py', 53, 'it_raises_a_value_error')
function: <function describe_convert_command.<locals>.describe_init.<locals>.with_format_go_licenses.<locals>.with_invalid_file_format.<locals>.it_raises_a_value_error at 0x106c56a20>
markers: []
user_properties: []
attrnames: ['_ALLOW_MARKERS', '__abstractmethods__', '__annotations__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', '__weakref__', '_abc_impl', '_check_item_and_collector_diamond_inheritance', '_fixtureinfo', '_getinstance', '_getobj', '_initrequest', '_instance', '_nodeid', '_obj', '_pyfuncitem', '_pytest_diamond_inheritance_warning_shown', '_report_sections', '_repr_failure_py', '_request', '_store', '_traceback_filter', 'add_marker', 'add_report_section', 'addfinalizer', 'cls', 'config', 'extra_keyword_matches', 'fixturenames', 'from_parent', 'fspath', 'funcargs', 'function', 'get_closest_marker', 'getmodpath', 'getparent', 'ihook', 'instance', 'iter_markers', 'iter_markers_with_node', 'iter_parents', 'keywords', 'listchain', 'listextrakeywords', 'listnames', 'location', 'module', 'name', 'nextitem', 'nodeid', 'obj', 'originalname', 'own_markers', 'parent', 'path', 'reportinfo', 'repr_failure', 'runtest', 'session', 'setup', 'stash', 'teardown', 'user_properties', 'warn']
extra info:
fullname: it_raises_a_value_error
testfunc: describe_convert_command.describe_init.with_format_go_licenses.with_invalid_file_format.it_raises_a_value_error
parameterized:
traceback:
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/run_adapter.py", line 18, in <module>
main(tool, cmd, subargs, toolargs)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/__main__.py", line 96, in main
parents, result = run(toolargs, **subargs)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 29, in discover
ec = _pytest_main(pytestargs, [_plugin])
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/config/__init__.py", line 175, in main
ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main
return wrap_session(config, _main)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 283, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 336, in _main
config.hook.pytest_collection(session=session)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 347, in pytest_collection
session.perform_collect()
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 819, in perform_collect
hook.pytest_collection_finish(session=self)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 101, in pytest_collection_finish
test, parents = self.parse_item(item)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 71, in parse_item
return parse_item(item)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_pytest_item.py", line 182, in parse_item
raise should_never_reach_here(
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_pytest_item.py", line 130, in should_never_reach_here
traceback.print_stack()
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 812, in perform_collect
INTERNALERROR> hook.pytest_collection_modifyitems(
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/cacheprovider.py", line 443, in pytest_collection_modifyitems
INTERNALERROR> res = yield
INTERNALERROR> ^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/cacheprovider.py", line 373, in pytest_collection_modifyitems
INTERNALERROR> res = yield
INTERNALERROR> ^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 86, in pytest_collection_modifyitems
INTERNALERROR> test, parents = self.parse_item(item)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 71, in parse_item
INTERNALERROR> return parse_item(item)
INTERNALERROR> ^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_pytest_item.py", line 182, in parse_item
INTERNALERROR> raise should_never_reach_here(
INTERNALERROR> NotImplementedError: Unexpected pytest node (see printed output).
INTERNALERROR>
INTERNALERROR> During handling of the above exception, another exception occurred:
INTERNALERROR>
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 283, in wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 336, in _main
INTERNALERROR> config.hook.pytest_collection(session=session)
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/logging.py", line 790, in pytest_collection
INTERNALERROR> return (yield)
INTERNALERROR> ^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/warnings.py", line 121, in pytest_collection
INTERNALERROR> return (yield)
INTERNALERROR> ^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 122, in _multicall
INTERNALERROR> teardown.throw(exception) # type: ignore[union-attr]
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/config/__init__.py", line 1417, in pytest_collection
INTERNALERROR> return (yield)
INTERNALERROR> ^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 347, in pytest_collection
INTERNALERROR> session.perform_collect()
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/_pytest/main.py", line 819, in perform_collect
INTERNALERROR> hook.pytest_collection_finish(session=self)
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 139, in _multicall
INTERNALERROR> raise exception.with_traceback(exception.__traceback__)
INTERNALERROR> File "/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 101, in pytest_collection_finish
INTERNALERROR> test, parents = self.parse_item(item)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 71, in parse_item
INTERNALERROR> return parse_item(item)
INTERNALERROR> ^^^^^^^^^^^^^^^^
INTERNALERROR> File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_pytest_item.py", line 182, in parse_item
INTERNALERROR> raise should_never_reach_here(
INTERNALERROR> NotImplementedError: Unexpected pytest node (see printed output).
========================= 71 tests collected in 0.07s ==========================
Traceback (most recent call last):
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/run_adapter.py", line 18, in <module>
main(tool, cmd, subargs, toolargs)
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/__main__.py", line 96, in main
parents, result = run(toolargs, **subargs)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/testing_tools/adapter/pytest/_discovery.py", line 42, in discover
raise Exception(f"pytest discovery failed (exit code {ec})")
Exception: pytest discovery failed (exit code 3)
at ChildProcess.<anonymous> (/u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/src/client/common/process/rawProcessApis.ts:151:29)
at Object.onceWrapper (node:events:633:26)
at ChildProcess.emit (node:events:518:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1104:16)
at Socket.<anonymous> (node:internal/child_process:456:11)
at Socket.emit (node:events:518:28)
at Socket.emit (node:domain:489:12)
at Pipe.<anonymous> (node:net:343:12)
at Pipe.callbackTrampoline (node:internal/async_hooks:130:17)
2024-12-27 18:22:04.844 [debug] Found cached env for /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python
2024-12-27 18:22:41.199 [debug] Found cached env for /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python
2024-12-27 18:23:54.624 [debug] Found cached env for /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python
2024-12-27 18:23:54.625 [info] Running installed packages checker: {
id: '/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python',
sysPrefix: '/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12',
envType: 'Poetry',
envName: 'myproject-ido50-uZ-py3.12',
envPath: '/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12',
path: '/u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python',
architecture: 3,
sysVersion: '3.12.4 (main, Aug 1 2024, 08:33:17) [Clang 15.0.0 (clang-1500.3.9.4)]',
version: {
raw: '3.12.4',
major: 3,
minor: 12,
patch: 4,
build: [],
prerelease: [ 'final', '0' ]
},
displayName: "Python 3.12.4 ('myproject-ido50-uZ-py3.12')",
detailedDisplayName: "Python 3.12.4 ('myproject-ido50-uZ-py3.12': Poetry)",
type: 'Virtual'
} /u/ks/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/installed_check.py /u/ks/src/myproject/pyproject.toml
2024-12-27 18:23:54.625 [info] > ~/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python ~/.vscode/extensions/ms-python.python-2024.22.1-darwin-arm64/python_files/installed_check.py ./pyproject.toml
2024-12-27 18:23:54.631 [debug] Found cached env for /u/ks/Library/Caches/pypoetry/virtualenvs/myproject-ido50-uZ-py3.12/bin/python
2024-12-27 18:23:54.732 [debug] Installed packages check result:
[]
Type: Bug
Behaviour
I'm working on a poetry project with pytest and pytest-describe.
Tests are not recognized by the python extension.
My
.vscode/settings.jsoncontainsHowever, despite setting "Trace" in VSCode Output "Python", there's no "Experiment" in the output.
Steps to reproduce:
pytest-describe.pytestinpyproject.tomlwithtests/convert/test_convert_command.pywith nested describe structure, e.g.Diagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Extension version: 2024.22.1
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Darwin arm64 23.4.0
Modes:
python.languageServersetting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off