Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytest code coverage run fails after attempting to parse non-Python file #24703

Open
debonte opened this issue Jan 8, 2025 · 1 comment
Open
Assignees
Labels
area-testing bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team

Comments

@debonte
Copy link

debonte commented Jan 8, 2025

Type: Bug

Behaviour

Running pytest with args: ['-p', 'vscode_pytest', '--rootdir=c:\\temp\\temp\\sarif-tools-origin', '--cov=.', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\blame\\test_blame.py::test_blame_no_blame_info', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\blame\\test_blame.py::test_blame_success', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\codeclimate\\test_codeclimate.py::test_code_climate', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\copy\\test_copy.py::test_generate_sarif', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\csv\\test_csv.py::test_csv', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\diff\\test_diff.py::test_print_diff', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\diff\\test_diff_issues_reordered.py::test_diff_issues_reordered', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\emacs\\test_emacs.py::test_emacs', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\html\\test_html.py::test_html', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\info\\test_info.py::test_info', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\ls\\test_ls.py::test_ls', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\summary\\test_summary.py::test_summary', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\trend\\test_trend.py::test_trend', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\upgrade_filter\\test_upgrade_filter.py::test_upgrade_filter', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\version\\test_version.py::test_version', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\ops\\word\\test_word.py::test_word', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_check_switch.py::test_check', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_init_filter', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_init_filter_no_value', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_rehydrate_filter_stats', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_zero_counts', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_append_include', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_append_exclude', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_append_no_filters', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_match', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_no_match', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_regex', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_regex_guid', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_existence_only', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_match_default_include_default_configuration', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_check_line_number', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_match_default_include_rule_override', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter0-result0]', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter1-result1]', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter2-result2]', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter3-result3]', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter4-result4]', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter5-result5]', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_include', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_exclude', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_exclude_not_all', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_filter_results_no_filters', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_get_filter_stats', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_load_filter_file', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_load_filter_file_with_configuration', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_general_filter.py::TestGeneralFilter::test_load_filter_file_wrong_format', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_sarif_file_utils.py::test_combine_code_and_description_short', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_sarif_file_utils.py::test_combine_code_and_description_long_desc', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_sarif_file_utils.py::test_combine_code_and_description_long_code', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_sarif_file_utils.py::test_read_result_rule', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_sarif_file_utils.py::test_read_result_invocation', 'c:\\temp\\temp\\sarif-tools-origin\\tests\\test_sarif_file_utils.py::test_read_result_severity']
============================= test session starts =============================
platform win32 -- Python 3.8.10, pytest-8.3.3, pluggy-1.5.0
rootdir: c:\temp\temp\sarif-tools-origin
configfile: pyproject.toml
plugins: cov-5.0.0
collected 52 items

tests\ops\blame\test_blame.py ..                                         [  3%]
tests\ops\codeclimate\test_codeclimate.py .                              [  5%]
tests\ops\copy\test_copy.py .                                            [  7%]
tests\ops\csv\test_csv.py .                                              [  9%]
tests\ops\diff\test_diff.py .                                            [ 11%]
tests\ops\diff\test_diff_issues_reordered.py .                           [ 13%]
tests\ops\emacs\test_emacs.py .                                          [ 15%]
tests\ops\html\test_html.py .                                            [ 17%]
tests\ops\info\test_info.py .                                            [ 19%]
tests\ops\ls\test_ls.py .                                                [ 21%]
tests\ops\summary\test_summary.py .                                      [ 23%]
tests\ops\trend\test_trend.py .                                          [ 25%]
tests\ops\upgrade_filter\test_upgrade_filter.py .                        [ 26%]
tests\ops\version\test_version.py .                                      [ 28%]
tests\ops\word\test_word.py .                                            [ 30%]
tests\test_check_switch.py .                                             [ 32%]
tests\test_general_filter.py .............................               [ 88%]
tests\test_sarif_file_utils.py ......                                    [100%]Error[vscode-pytest]: unable to read testIds from temp fileCouldn't parse 'C:\temp\temp\sarif-tools-origin\sarif\operations\templates\sarif_emacs.txt' as Python source: 'invalid syntax' at line 1
============================= test session starts =============================
platform win32 -- Python 3.8.10, pytest-8.3.3, pluggy-1.5.0
rootdir: c:\temp\temp\sarif-tools-origin
configfile: pyproject.toml
plugins: cov-5.0.0
collected 52 items

tests\ops\blame\test_blame.py F.                                         [  3%]
tests\ops\codeclimate\test_codeclimate.py .                              [  5%]
tests\ops\copy\test_copy.py .                                            [  7%]
tests\ops\csv\test_csv.py .                                              [  9%]
tests\ops\diff\test_diff.py .                                            [ 11%]
tests\ops\diff\test_diff_issues_reordered.py .                           [ 13%]
tests\ops\emacs\test_emacs.py .                                          [ 15%]
tests\ops\html\test_html.py F                                            [ 17%]
tests\ops\info\test_info.py .                                            [ 19%]
tests\ops\ls\test_ls.py .                                                [ 21%]
tests\ops\summary\test_summary.py .                                      [ 23%]
tests\ops\trend\test_trend.py .                                          [ 25%]
tests\ops\upgrade_filter\test_upgrade_filter.py .                        [ 26%]
tests\ops\version\test_version.py .                                      [ 28%]
tests\ops\word\test_word.py .                                            [ 30%]
tests\test_check_switch.py .                                             [ 32%]
tests\test_general_filter.py .............................               [ 88%]
tests\test_sarif_file_utils.py ......                                    [100%]Traceback (most recent call last):
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\coverage\parser.py", line 272, in parse_source
    self._ast_root = ast.parse(self.text)
  File "C:\Users\erikd\AppData\Local\Programs\Python\Python38\lib\ast.py", line 47, in parse
    return compile(source, filename, mode, flags,
  File "<unknown>", line 1
    -*- compilation -*-
     ^
SyntaxError: invalid syntax

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:\Users\erikd\.vscode-insiders\extensions\ms-python.python-2024.23.2024121901-win32-x64\python_files\vscode_pytest\run_pytest_script.py", line 67, in <module>
    run_pytest(args)
  File "c:\Users\erikd\.vscode-insiders\extensions\ms-python.python-2024.23.2024121901-win32-x64\python_files\vscode_pytest\run_pytest_script.py", line 23, in run_pytest
    pytest.main(arg_array)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\_pytest\config\__init__.py", line 175, in main
    ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\_pytest\main.py", line 330, in pytest_cmdline_main
    return wrap_session(config, _main)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\_pytest\main.py", line 283, in wrap_session
    session.exitstatus = doit(config, session) or 0
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_callers.py", line 139, in _multicall
    raise exception.with_traceback(exception.__traceback__)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_callers.py", line 122, in _multicall
    teardown.throw(exception)  # type: ignore[union-attr]
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\_pytest\logging.py", line 868, in pytest_sessionfinish
    return (yield)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_callers.py", line 122, in _multicall
    teardown.throw(exception)  # type: ignore[union-attr]
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\_pytest\terminal.py", line 893, in pytest_sessionfinish
    result = yield
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_callers.py", line 122, in _multicall
    teardown.throw(exception)  # type: ignore[union-attr]
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\_pytest\warnings.py", line 141, in pytest_sessionfinish
    return (yield)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\pluggy\_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "c:\Users\erikd\.vscode-insiders\extensions\ms-python.python-2024.23.2024121901-win32-x64\python_files\vscode_pytest\__init__.py", line 468, in pytest_sessionfinish
    analysis = cov.analysis2(file)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\coverage\control.py", line 931, in analysis2
    analysis = self._analyze(morf)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\coverage\control.py", line 948, in _analyze
    return analysis_from_file_reporter(data, self.config.precision, file_reporter, filename)
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\coverage\results.py", line 31, in analysis_from_file_reporter
    statements = file_reporter.lines()
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\coverage\python.py", line 194, in lines
    return self.parser.statements
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\coverage\python.py", line 189, in parser
    self._parser.parse_source()
  File "C:\temp\temp\sarif-tools-origin\.venv\lib\site-packages\coverage\parser.py", line 279, in parse_source
    raise NotPython(
coverage.exceptions.NotPython: Couldn't parse 'C:\temp\temp\sarif-tools-origin\sarif\operations\templates\sarif_emacs.txt' as Python source: 'invalid syntax' at line 1
Finished running tests!

Steps to reproduce:

  1. git clone https://github.com/microsoft/sarif-tools.git
  2. cd sarif-tools
  3. poetry env use <path to 3.8 python.exe>
  4. poetry install
  5. code-insiders .
  6. "Python: Select Interpreter" and ensure that the .venv interpreter is selected.
  7. Open Testing pane
  8. Press "Configure Python Tests"
  9. Select pytest
  10. Select . Root directory
  11. Run all tests as a sanity check to ensure they are happy.
  12. Run all tests with coverage

Actual: Coverage run fails because the coverage tool attempts to parse a non-Python file (text or html) as Python.

coverage.exceptions.NotPython: Couldn't parse 'C:\temp\temp\sarif-tools-origin\sarif\operations\templates\sarif_emacs.txt' as Python source: 'invalid syntax' at line 1

Expected: Coverage run succeeds. If you copy the pytest command line args used within VS Code (from the top of the Test Results pane), drop the leading -p vscode_pytest, reformat the list of args into a valid command line arg set, and run poetry run pytest <all those args> on the command line, the coverage run will succeed, as shown below:

Command line coverage run output
c:\temp\temp\temp\sarif-tools (main) > poetry run pytest --rootdir=c:\temp\temp\temp\sarif-tools --cov=. c:\temp\temp\temp\sarif-tools\tests\ops\blame\test_blame.py::test_blame_no_blame_info c:\temp\temp\temp\sarif-tools\tests\ops\blame\test_blame.py::test_blame_success c:\temp\temp\temp\sarif-tools\tests\ops\codeclimate\test_codeclimate.py::test_code_climate c:\temp\temp\temp\sarif-tools\tests\ops\copy\test_copy.py::test_generate_sarif c:\temp\temp\temp\sarif-tools\tests\ops\csv\test_csv.py::test_csv c:\temp\temp\temp\sarif-tools\tests\ops\diff\test_diff.py::test_print_diff c:\temp\temp\temp\sarif-tools\tests\ops\diff\test_diff_issues_reordered.py::test_diff_issues_reordered c:\temp\temp\temp\sarif-tools\tests\ops\emacs\test_emacs.py::test_emacs c:\temp\temp\temp\sarif-tools\tests\ops\html\test_html.py::test_html c:\temp\temp\temp\sarif-tools\tests\ops\info\test_info.py::test_info c:\temp\temp\temp\sarif-tools\tests\ops\ls\test_ls.py::test_ls c:\temp\temp\temp\sarif-tools\tests\ops\summary\test_summary.py::test_summary c:\temp\temp\temp\sarif-tools\tests\ops\trend\test_trend.py::test_trend c:\temp\temp\temp\sarif-tools\tests\ops\upgrade_filter\test_upgrade_filter.py::test_upgrade_filter c:\temp\temp\temp\sarif-tools\tests\ops\version\test_version.py::test_version c:\temp\temp\temp\sarif-tools\tests\ops\word\test_word.py::test_word c:\temp\temp\temp\sarif-tools\tests\test_check_switch.py::test_check c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_init_filter c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_init_filter_no_value c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_rehydrate_filter_stats c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_zero_counts c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_append_include c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_append_exclude c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_append_no_filters c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_match c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_no_match c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_regex c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_regex_guid c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_existence_only c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_match_default_include_default_configuration c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_check_line_number c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_match_default_include_rule_override c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter0-result0] c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter1-result1] c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter2-result2] c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter3-result3] c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter4-result4] c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_shortcuts[shortcut_filter5-result5] c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_include c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_exclude c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_exclude_not_all c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_filter_results_no_filters c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_get_filter_stats c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_load_filter_file c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_load_filter_file_with_configuration c:\temp\temp\temp\sarif-tools\tests\test_general_filter.py::TestGeneralFilter::test_load_filter_file_wrong_format c:\temp\temp\temp\sarif-tools\tests\test_sarif_file_utils.py::test_combine_code_and_description_short c:\temp\temp\temp\sarif-tools\tests\test_sarif_file_utils.py::test_combine_code_and_description_long_desc c:\temp\temp\temp\sarif-tools\tests\test_sarif_file_utils.py::test_combine_code_and_description_long_code c:\temp\temp\temp\sarif-tools\tests\test_sarif_file_utils.py::test_read_result_rule c:\temp\temp\temp\sarif-tools\tests\test_sarif_file_utils.py::test_read_result_invocation c:\temp\temp\temp\sarif-tools\tests\test_sarif_file_utils.py::test_read_result_severity
================================================= test session starts =================================================
platform win32 -- Python 3.8.10, pytest-8.3.3, pluggy-1.5.0
rootdir: c:\temp\temp\temp\sarif-tools
configfile: pyproject.toml
plugins: cov-5.0.0
collected 52 items

tests\ops\blame\test_blame.py ..                                                                                 [  3%]
tests\ops\codeclimate\test_codeclimate.py .                                                                      [  5%]
tests\ops\copy\test_copy.py .                                                                                    [  7%]
tests\ops\csv\test_csv.py .                                                                                      [  9%]
tests\ops\diff\test_diff.py .                                                                                    [ 11%]
tests\ops\diff\test_diff_issues_reordered.py .                                                                   [ 13%]
tests\ops\emacs\test_emacs.py .                                                                                  [ 15%]
tests\ops\html\test_html.py .                                                                                    [ 17%]
tests\ops\info\test_info.py .                                                                                    [ 19%]
tests\ops\ls\test_ls.py .                                                                                        [ 21%]
tests\ops\summary\test_summary.py .                                                                              [ 23%]
tests\ops\trend\test_trend.py .                                                                                  [ 25%]
tests\ops\upgrade_filter\test_upgrade_filter.py .                                                                [ 26%]
tests\ops\version\test_version.py .                                                                              [ 28%]
tests\ops\word\test_word.py .                                                                                    [ 30%]
tests\test_check_switch.py .                                                                                     [ 32%]
tests\test_general_filter.py .............................                                                       [ 88%]
tests\test_sarif_file_utils.py ......                                                                            [100%]

---------- coverage: platform win32, python 3.8.10-final-0 -----------
Name                                              Stmts   Miss  Cover
---------------------------------------------------------------------
sarif\__init__.py                                     1      0   100%
sarif\__main__.py                                     3      3     0%
sarif\charts.py                                      23      0   100%
sarif\cmdline\__init__.py                             0      0   100%
sarif\cmdline\main.py                               226    147    35%
sarif\filter\__init__.py                              0      0   100%
sarif\filter\filter_stats.py                         50     19    62%
sarif\filter\general_filter.py                      145      0   100%
sarif\issues_report.py                               69      3    96%
sarif\loader.py                                      38     10    74%
sarif\operations\__init__.py                          0      0   100%
sarif\operations\blame_op.py                         90     23    74%
sarif\operations\codeclimate_op.py                   34      9    74%
sarif\operations\copy_op.py                          45      7    84%
sarif\operations\csv_op.py                           32      9    72%
sarif\operations\diff_op.py                          95     32    66%
sarif\operations\emacs_op.py                         40      6    85%
sarif\operations\html_op.py                          56     13    77%
sarif\operations\info_op.py                          65     12    82%
sarif\operations\ls_op.py                            19      4    79%
sarif\operations\summary_op.py                       34     12    65%
sarif\operations\trend_op.py                         43      5    88%
sarif\operations\upgrade_filter_op.py                41      3    93%
sarif\operations\word_op.py                          91     12    87%
sarif\sarif_file.py                                 301     97    68%
sarif\sarif_file_utils.py                            99      5    95%
tests\__init__.py                                     0      0   100%
tests\ops\blame\test_blame.py                        44      0   100%
tests\ops\codeclimate\test_codeclimate.py            19      0   100%
tests\ops\copy\test_copy.py                          27      0   100%
tests\ops\csv\test_csv.py                            18      0   100%
tests\ops\diff\test_diff.py                          20      0   100%
tests\ops\diff\test_diff_issues_reordered.py         22      0   100%
tests\ops\emacs\test_emacs.py                        18      0   100%
tests\ops\html\test_html.py                          21      0   100%
tests\ops\info\test_info.py                          26      0   100%
tests\ops\ls\test_ls.py                              16      0   100%
tests\ops\summary\test_summary.py                    22      0   100%
tests\ops\trend\test_trend.py                        25      0   100%
tests\ops\upgrade_filter\test_upgrade_filter.py      15      0   100%
tests\ops\version\test_version.py                     7      0   100%
tests\ops\word\test_word.py                          21      0   100%
tests\test_check_switch.py                           13      0   100%
tests\test_general_filter.py                        238      0   100%
tests\test_sarif_file_utils.py                      105      0   100%
tests\utils.py                                        6      0   100%
---------------------------------------------------------------------
TOTAL                                              2323    431    81%


================================================= 52 passed in 4.16s ==================================================

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2025-01-08 11:20:35.797 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-01-08 11:20:35.798 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-01-08 11:20:35.798 [info] Experiment 'pythonTestAdapter' is active
2025-01-08 11:20:35.798 [info] Native locator: Refresh started
2025-01-08 11:20:35.798 [error] Python discovery not supported in untrusted workspace
2025-01-08 11:20:35.798 [info] Native locator: Refresh finished in 13 ms
2025-01-08 11:20:35.885 [error] Python discovery not supported in untrusted workspace
2025-01-08 11:20:35.885 [error] Invalid environment [native]: {}
2025-01-08 11:20:43.088 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-01-08 11:20:43.088 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-01-08 11:20:43.088 [info] Experiment 'pythonTestAdapter' is active
2025-01-08 11:20:43.088 [info] Native locator: Refresh started
2025-01-08 11:20:43.088 [info] Native locator: Refresh started
2025-01-08 11:20:43.088 [info] Native locator: Refresh started
2025-01-08 11:20:43.797 [info] Poetry environment manager found at: C:\Users\erikd\AppData\Roaming\pypoetry\venv\Scripts\poetry.exe
2025-01-08 11:20:43.799 [info] Conda environment manager found at: C:\Users\erikd\AppData\Local\miniconda3\Scripts\conda.exe
2025-01-08 11:20:43.802 [info] Native locator: Refresh finished in 3599 ms
2025-01-08 11:20:43.814 [info] > pyenv which python
2025-01-08 11:20:43.814 [info] cwd: .
2025-01-08 11:20:44.658 [info] Starting Pylance language server.
2025-01-08 11:20:44.658 [info] Starting Pylance language server.
2025-01-08 11:20:44.672 [info] > C:\test\LibraryTests\matplotlib3.7-test\.venv\Scripts\python.exe -c "import sys;print(sys.executable)"
2025-01-08 11:21:13.383 [info] Discover tests for workspace name: sarif-tools - uri: c:\temp\temp\temp\sarif-tools
2025-01-08 11:21:23.691 [info] Python interpreter path: C:\test\LibraryTests\matplotlib3.7-test\.venv\Scripts\python.exe
2025-01-08 11:21:25.479 [info] > ~\AppData\Local\miniconda3\Scripts\conda.exe info --json
2025-01-08 11:21:33.284 [info] Native locator: Refresh started
2025-01-08 11:21:33.316 [info] Poetry environment manager found at: C:\Users\erikd\AppData\Roaming\pypoetry\venv\Scripts\poetry.exe
2025-01-08 11:21:33.429 [info] Conda environment manager found at: C:\Users\erikd\AppData\Local\miniconda3\Scripts\conda.exe
2025-01-08 11:21:33.436 [info] Native locator: Refresh finished in 151 ms
2025-01-08 11:21:33.444 [info] Discover tests for workspace name: sarif-tools - uri: c:\temp\temp\temp\sarif-tools
2025-01-08 11:21:33.642 [info] > C:/test/LibraryTests/matplotlib3.7-test/.venv/Scripts/activate.bat && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2024.23.2024121901-win32-x64/python_files/printEnvVariables.py
2025-01-08 11:21:33.642 [info] shell: commandPrompt
2025-01-08 11:21:33.885 [info] > ~\AppData\Local\Programs\Python\Python310\python.exe ~/.vscode-insiders/extensions/ms-python.python-2024.23.2024121901-win32-x64/python_files/printEnvVariables.py
2025-01-08 11:21:33.885 [info] shell: commandPrompt
2025-01-08 11:21:34.070 [info] Prepending environment variable PATH in collection with C:\test\LibraryTests\matplotlib3.7-test\.venv\Scripts; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:21:34.070 [info] Setting environment variable PROMPT in collection to (.venv) $P $C$E[1;32mmain$E[0m$F $G  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:21:34.070 [info] Setting environment variable VIRTUAL_ENV in collection to C:\test\LibraryTests\matplotlib3.7-test\.venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:21:34.070 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to .venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:21:34.070 [info] Setting environment variable _OLD_VIRTUAL_PROMPT in collection to $P $C$E[1;32mmain$E[0m$F $G  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:22:12.601 [info] Discover tests for workspace name: sarif-tools - uri: c:\temp\temp\temp\sarif-tools
2025-01-08 11:22:12.601 [info] Python interpreter path: .\.venv\Scripts\python.exe
2025-01-08 11:22:12.642 [info] > ./.venv/Scripts/activate.bat && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2024.23.2024121901-win32-x64/python_files/printEnvVariables.py
2025-01-08 11:22:12.642 [info] shell: commandPrompt
2025-01-08 11:22:13.082 [info] Prepending environment variable PATH in collection with C:\temp\temp\temp\sarif-tools\.venv\Scripts; {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:22:13.082 [info] Setting environment variable PROMPT in collection to (sarif-tools-py3.8) $P $C$E[1;32mmain$E[0m$F $G  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:22:13.082 [info] Setting environment variable VIRTUAL_ENV in collection to C:\temp\temp\temp\sarif-tools\.venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:22:13.082 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to sarif-tools-py3.8 {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:22:13.082 [info] Setting environment variable _OLD_VIRTUAL_PROMPT in collection to $P $C$E[1;32mmain$E[0m$F $G  {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-01-08 11:23:02.260 [info] Discover tests for workspace name: sarif-tools - uri: c:\temp\temp\temp\sarif-tools
2025-01-08 11:23:36.420 [info] > ./.venv/Scripts/activate.bat && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2024.23.2024121901-win32-x64/python_files/printEnvVariables.py
2025-01-08 11:23:36.420 [info] shell: commandPrompt
2025-01-08 11:23:36.685 [info] > .\.venv\Scripts\python.exe -c "import pytest"
2025-01-08 11:23:37.714 [info] Discover tests for workspace name: sarif-tools - uri: c:\temp\temp\temp\sarif-tools\.vscode\settings.json
2025-01-08 11:23:37.717 [warning] The cwd resolves to a different path, checking if it has a symbolic link somewhere in its path.
2025-01-08 11:23:37.717 [info] All environment variables set for pytest discovery: {"...PTVS_PYLANCE_DEBUG_ARGS":"--nolazy --inspect=6600 --inspect-brk","...PTVS_PYLANCE_DEBUG_ENABLED":"1","...PTVS_PYLANCE_DEBUG_STARTUP_FILE":"C:\\src\\pyrx\\packages\\pylance\\dist\\pylance-langserver.bundle.js","...REQUESTS_CA_BUNDLE":"c:\\src\\pyrx\\mitmproxy-ca-cert.pem","ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\erikd\\AppData\\Roaming","APPLICATIONINSIGHTS_CONFIGURATION_CONTENT":"{}","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_54868_GAJTEEVOHGRAFSBS","COMPUTERNAME":"ERIKD","CONDA_BAT":"c:\\Users\\erikd\\AppData\\Local\\miniconda3\\condabin\\conda.bat","CONDA_EXE":"c:\\Users\\erikd\\AppData\\Local\\miniconda3\\Scripts\\conda.exe","CONDA_SHLVL":"0","EFC_14460":"1","ELECTRON_NO_ATTACH_CONSOLE":"1","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","GITBRANCH":"main","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\erikd","IS_CI":"False","JAVA_HOME":"c:\\PROGRA~2\\Java\\jre-1.8","LOCALAPPDATA":"C:\\Users\\erikd\\AppData\\Local","LOGONSERVER":"\\\\ERIKD","NUMBER_OF_PROCESSORS":"12","NVM_HOME":"C:\\Users\\erikd\\AppData\\Roaming\\nvm","NVM_SYMLINK":"C:\\Program Files\\nodejs","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POWERSHELL_DISTRIBUTION_CHANNEL":"MSI:Windows 10 Enterprise","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 158 Stepping 10, GenuineIntel","PROCESSOR_LEVEL":"6","PROCESSOR_REVISION":"9e0a","PROMPT":"$P $C$E[1;32mmain$E[0m$F $G ","PUBLIC":"C:\\Users\\Public","RUNNER_TEMP":"c:\\src\\RUNNER_TEMP","RUNNER_TOOL_CACHE":"c:\\src\\RUNNER_TOOL_CACHE","SESSIONNAME":"Console","TEMP":"C:\\Users\\erikd\\AppData\\Local\\Temp","TMP":"C:\\Users\\erikd\\AppData\\Local\\Temp","UATDATA":"C:\\Windows\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77","USERDNSDOMAIN":"redmond.corp.microsoft.com","USERDOMAIN":"REDMOND","USERDOMAIN_ROAMINGPROFILE":"REDMOND","USERNAME":"erikd","USERPROFILE":"C:\\Users\\erikd","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"C:\\Users\\erikd\\AppData\\Roaming\\Code - Insiders\\CachedData\\8cc255e03ac7c51804cea1194b1ea864bbe2ccb6","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"c:\\temp\\temp\\temp\\sarif-tools","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\aa8f8aec-1.97.0-insider-main-sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\erikd\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code Insiders\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en\",\"availableLanguages\":{}}","VSCODE_PID":"54868","VSC_PYTHON_LOG_TELEMETRY":"1","WSLENV":"WT_SESSION:WT_PROFILE_ID:","WT_PROFILE_ID":"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}","WT_SESSION":"cea9fd5d-95a6-4365-816c-2a486ab65e71","...VSLogActivity":"1","ChocolateyInstall":"C:\\ProgramData\\chocolatey","ChocolateyLastPathUpdate":"133354936128795876","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","OculusBase":"C:\\Program Files\\Oculus\\","OneDrive":"C:\\Users\\erikd\\OneDrive - Microsoft","OneDriveCommercial":"C:\\Users\\erikd\\OneDrive - Microsoft","OneDriveConsumer":"C:\\Users\\erikd\\OneDrive","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","windir":"C:\\WINDOWS","Path":"c:\\Users\\erikd\\AppData\\Local\\miniconda3\\condabin;C:\\Program Files\\Oculus\\Support\\oculus-runtime;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Users\\erikd\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;c:\\util;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;c:\\Users\\erikd\\AppData\\Local\\Programs\\cursor\\resources\\app\\bin;C:\\Program Files\\GitHub CLI\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft Network Monitor 3\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\dotnet\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Quarto\\bin;C:\\Users\\erikd\\.cargo\\bin;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python312\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python38\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python38\\;C:\\Users\\erikd\\AppData\\Roaming\\Python\\Scripts;c:\\users\\erikd\\appdata\\roaming\\python\\python312\\scripts;c:\\users\\erikd\\appdata\\roaming\\python\\python39\\scripts;C:\\Users\\erikd\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\erikd\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\erikd\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\erikd\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\bin;C:\\Users\\erikd\\AppData\\Local\\Programs\\Azure Dev CLI\\;c:\\users\\erikd\\.local\\bin;C:\\Users\\erikd\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files\\mitmproxy\\bin;C:\\Users\\erikd\\AppData\\Local\\pixi\\bin\\;C:\\Users\\erikd\\.pixi\\bin;C:\\Users\\erikd\\.dotnet\\tools","PYTHONPATH":"c:\\Users\\erikd\\.vscode-insiders\\extensions\\ms-python.python-2024.23.2024121901-win32-x64\\python_files","TEST_RUN_PIPE":"\\\\.\\pipe\\python-test-discovery-041d9fc4f5af1e6eb350"}
2025-01-08 11:23:37.724 [info] > ./.venv/Scripts/activate.bat && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode-insiders/extensions/ms-python.python-2024.23.2024121901-win32-x64/python_files/printEnvVariables.py
2025-01-08 11:23:37.724 [info] shell: commandPrompt
2025-01-08 11:23:38.050 [info] > .\.venv\Scripts\python.exe -m pytest -p vscode_pytest --collect-only . --rootdir=.
2025-01-08 11:23:38.050 [info] cwd: .
2025-01-08 11:23:38.267 [info] Discover tests for workspace name: sarif-tools - uri: c:\temp\temp\temp\sarif-tools
2025-01-08 11:23:38.268 [error] Test discovery already in progress, not starting a new one.
2025-01-08 11:23:38.912 [info] ============================= test session starts =============================
platform win32 -- Python 3.8.10, pytest-8.3.3, pluggy-1.5.0

2025-01-08 11:23:38.975 [info] rootdir: c:\temp\temp\temp\sarif-tools
configfile: pyproject.toml
plugins: cov-5.0.0

2025-01-08 11:23:40.550 [info] Discover tests for workspace name: sarif-tools - uri: c:\temp\temp\temp\sarif-tools\.vscode\settings.json
2025-01-08 11:23:40.551 [error] Test discovery already in progress, not starting a new one.
2025-01-08 11:23:48.266 [info] collected 52 items

<Dir sarif-tools>
  <Package tests>
    <Dir ops>
      <Dir blame>
        <Module test_blame.py>
          <Function test_blame_no_blame_info>
          <Function test_blame_success>
2025-01-08 11:23:48.267 [info] 
      <Dir codeclimate>
        <Module test_codeclimate.py>
          <Function test_code_climate>
      <Dir copy>
        <Module test_copy.py>
          <Function test_generate_sarif>
      <Dir csv>
        <Module test_csv.py>
          <Function test_csv>
      <Dir diff>
        <Module test_diff.py>
          <Function test_print_diff>
        <Module test_diff_issues_reordered.py>
          <Function test_diff_issues_reordered>
      <Dir emacs>
        <Module test_emacs.py>
          <Function test_emacs>
      <Dir html>
        <Module test_html.py>
          <Function test_html>
      <Dir info>
        <Module test_info.py>
          <Function test_info>
      <Dir ls>
        <Module test_ls.py>
          <Function test_ls>
      <Dir summary>
        <Module test_summary.py>
          <Function test_summary>
      <Dir trend>
        <Module test_trend.py>
          <Function test_trend>
      <Dir upgrade_filter>
        <Module test_upgrade_filter.py>
          <Function test_upgrade_filter>
      <Dir version>
        <Module test_version.py>
          <Function test_version>
      <Dir word>
        <Module test_word.py>

2025-01-08 11:23:48.267 [info]           <Function test_word>
    <Module test_check_switch.py>
      <Function test_check>
    <Module test_general_filter.py>
      <Class TestGeneralFilter>
        <Function test_init_filter>
        <Function test_init_filter_no_value>
        <Function test_rehydrate_filter_stats>
        <Function test_zero_counts>
        <Function test_filter_append_include>
        <Function test_filter_append_exclude>
        <Function test_filter_append_no_filters>
        <Function test_filter_results_match>
        <Function test_filter_results_no_match>
        <Function test_filter_results_regex>
        <Function test_filter_results_regex_guid>
        <Function test_filter_results_existence_only>
        <Function test_filter_results_match_default_include_default_configuration>
        <Function test_filter_results_check_line_number>
        <Function test_filter_results_match_default_include_rule_override>
        <Function test_filter_results_shortcuts[shortcut_filter0-result0]>
        <Function test_filter_results_shortcuts[shortcut_filter1-result1]>
        <Function test_filter_results_shortcuts[shortcut_filter2-result2]>
        <Function test_filter_results_shortcuts[shortcut_filter3-result3]>
        <Function test_filter_results_shortcuts[shortcut_filter4-result4]>
        <Function test_filter_results_shortcuts[shortcut_filter5-result5]>
        <Function test_filter_results_include>
        <Function test_filter_results_exclude>
        <Function test_filter_results_exclude_not_all>
        <Function test_filter_results_no_filters>
        <Function test_get_filter_stats>
        <Function test_load_filter_file>
        <Function test_load_filter_file_with_configuration>
        <Function test_load_filter_file_wrong_format>
    <Module test_sarif_file_utils.py>
      <Function test_combine_code_and_description_short>
      <Function test_combine_code_and_description_long_desc>
      <Function test_combine_code_and_description_long_code>
      <Function test_read_result_rule>
      <Function test_read_result_invocation>
      <Function test_read_result_severity>

2025-01-08 11:23:48.280 [info] 

2025-01-08 11:23:48.280 [info] ========================= 52 tests collected in 9.35s =========================

2025-01-08 11:24:16.174 [info] arg: --rootdir already exists in args, not adding.
2025-01-08 11:24:16.174 [info] Attempting to use temp directory for test ids file, file name: test-ids-1cb924e02bd9af732730.txt
2025-01-08 11:24:16.185 [info] All environment variables set for pytest execution: {"...PTVS_PYLANCE_DEBUG_ARGS":"--nolazy --inspect=6600 --inspect-brk","...PTVS_PYLANCE_DEBUG_ENABLED":"1","...PTVS_PYLANCE_DEBUG_STARTUP_FILE":"C:\\src\\pyrx\\packages\\pylance\\dist\\pylance-langserver.bundle.js","...REQUESTS_CA_BUNDLE":"c:\\src\\pyrx\\mitmproxy-ca-cert.pem","ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\erikd\\AppData\\Roaming","APPLICATIONINSIGHTS_CONFIGURATION_CONTENT":"{}","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_54868_GAJTEEVOHGRAFSBS","COMPUTERNAME":"ERIKD","CONDA_BAT":"c:\\Users\\erikd\\AppData\\Local\\miniconda3\\condabin\\conda.bat","CONDA_EXE":"c:\\Users\\erikd\\AppData\\Local\\miniconda3\\Scripts\\conda.exe","CONDA_SHLVL":"0","EFC_14460":"1","ELECTRON_NO_ATTACH_CONSOLE":"1","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","GITBRANCH":"main","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\erikd","IS_CI":"False","JAVA_HOME":"c:\\PROGRA~2\\Java\\jre-1.8","LOCALAPPDATA":"C:\\Users\\erikd\\AppData\\Local","LOGONSERVER":"\\\\ERIKD","NUMBER_OF_PROCESSORS":"12","NVM_HOME":"C:\\Users\\erikd\\AppData\\Roaming\\nvm","NVM_SYMLINK":"C:\\Program Files\\nodejs","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POWERSHELL_DISTRIBUTION_CHANNEL":"MSI:Windows 10 Enterprise","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 158 Stepping 10, GenuineIntel","PROCESSOR_LEVEL":"6","PROCESSOR_REVISION":"9e0a","PROMPT":"$P $C$E[1;32mmain$E[0m$F $G ","PUBLIC":"C:\\Users\\Public","RUNNER_TEMP":"c:\\src\\RUNNER_TEMP","RUNNER_TOOL_CACHE":"c:\\src\\RUNNER_TOOL_CACHE","SESSIONNAME":"Console","TEMP":"C:\\Users\\erikd\\AppData\\Local\\Temp","TMP":"C:\\Users\\erikd\\AppData\\Local\\Temp","UATDATA":"C:\\Windows\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77","USERDNSDOMAIN":"redmond.corp.microsoft.com","USERDOMAIN":"REDMOND","USERDOMAIN_ROAMINGPROFILE":"REDMOND","USERNAME":"erikd","USERPROFILE":"C:\\Users\\erikd","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"C:\\Users\\erikd\\AppData\\Roaming\\Code - Insiders\\CachedData\\8cc255e03ac7c51804cea1194b1ea864bbe2ccb6","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"c:\\temp\\temp\\temp\\sarif-tools","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\aa8f8aec-1.97.0-insider-main-sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\erikd\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code Insiders\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en\",\"availableLanguages\":{}}","VSCODE_PID":"54868","VSC_PYTHON_LOG_TELEMETRY":"1","WSLENV":"WT_SESSION:WT_PROFILE_ID:","WT_PROFILE_ID":"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}","WT_SESSION":"cea9fd5d-95a6-4365-816c-2a486ab65e71","...VSLogActivity":"1","ChocolateyInstall":"C:\\ProgramData\\chocolatey","ChocolateyLastPathUpdate":"133354936128795876","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","OculusBase":"C:\\Program Files\\Oculus\\","OneDrive":"C:\\Users\\erikd\\OneDrive - Microsoft","OneDriveCommercial":"C:\\Users\\erikd\\OneDrive - Microsoft","OneDriveConsumer":"C:\\Users\\erikd\\OneDrive","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","windir":"C:\\WINDOWS","Path":"c:\\Users\\erikd\\AppData\\Local\\miniconda3\\condabin;C:\\Program Files\\Oculus\\Support\\oculus-runtime;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Users\\erikd\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;c:\\util;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;c:\\Users\\erikd\\AppData\\Local\\Programs\\cursor\\resources\\app\\bin;C:\\Program Files\\GitHub CLI\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft Network Monitor 3\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\dotnet\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Quarto\\bin;C:\\Users\\erikd\\.cargo\\bin;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python312\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python38\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python38\\;C:\\Users\\erikd\\AppData\\Roaming\\Python\\Scripts;c:\\users\\erikd\\appdata\\roaming\\python\\python312\\scripts;c:\\users\\erikd\\appdata\\roaming\\python\\python39\\scripts;C:\\Users\\erikd\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\erikd\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\erikd\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\erikd\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\bin;C:\\Users\\erikd\\AppData\\Local\\Programs\\Azure Dev CLI\\;c:\\users\\erikd\\.local\\bin;C:\\Users\\erikd\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files\\mitmproxy\\bin;C:\\Users\\erikd\\AppData\\Local\\pixi\\bin\\;C:\\Users\\erikd\\.pixi\\bin;C:\\Users\\erikd\\.dotnet\\tools","PYTHONPATH":"c:\\Users\\erikd\\.vscode-insiders\\extensions\\ms-python.python-2024.23.2024121901-win32-x64\\python_files","TEST_RUN_PIPE":"\\\\.\\pipe\\python-test-results-fd3d9624b1de8b6c6b7d","RUN_TEST_IDS_PIPE":"C:\\Users\\erikd\\AppData\\Local\\Temp\\test-ids-1cb924e02bd9af732730.txt"}
2025-01-08 11:24:16.185 [info] Running pytest with arguments: c:\Users\erikd\.vscode-insiders\extensions\ms-python.python-2024.23.2024121901-win32-x64\python_files\vscode_pytest\run_pytest_script.py --rootdir=c:\temp\temp\temp\sarif-tools for workspace c:\temp\temp\temp\sarif-tools 

2025-01-08 11:24:16.185 [info] > .\.venv\Scripts\python.exe ~\.vscode-insiders\extensions\ms-python.python-2024.23.2024121901-win32-x64\python_files\vscode_pytest\run_pytest_script.py --rootdir=.
2025-01-08 11:24:16.185 [info] cwd: .
2025-01-08 11:24:44.725 [info] arg: --rootdir already exists in args, not adding.
2025-01-08 11:24:44.725 [info] Attempting to use temp directory for test ids file, file name: test-ids-4a606cb1c0d1503a31a8.txt
2025-01-08 11:24:44.731 [info] All environment variables set for pytest execution: {"...PTVS_PYLANCE_DEBUG_ARGS":"--nolazy --inspect=6600 --inspect-brk","...PTVS_PYLANCE_DEBUG_ENABLED":"1","...PTVS_PYLANCE_DEBUG_STARTUP_FILE":"C:\\src\\pyrx\\packages\\pylance\\dist\\pylance-langserver.bundle.js","...REQUESTS_CA_BUNDLE":"c:\\src\\pyrx\\mitmproxy-ca-cert.pem","ALLUSERSPROFILE":"C:\\ProgramData","APPDATA":"C:\\Users\\erikd\\AppData\\Roaming","APPLICATIONINSIGHTS_CONFIGURATION_CONTENT":"{}","APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL":"1","CHROME_CRASHPAD_PIPE_NAME":"\\\\.\\pipe\\crashpad_54868_GAJTEEVOHGRAFSBS","COMPUTERNAME":"ERIKD","CONDA_BAT":"c:\\Users\\erikd\\AppData\\Local\\miniconda3\\condabin\\conda.bat","CONDA_EXE":"c:\\Users\\erikd\\AppData\\Local\\miniconda3\\Scripts\\conda.exe","CONDA_SHLVL":"0","EFC_14460":"1","ELECTRON_NO_ATTACH_CONSOLE":"1","ELECTRON_RUN_AS_NODE":"1","FPS_BROWSER_APP_PROFILE_STRING":"Internet Explorer","FPS_BROWSER_USER_PROFILE_STRING":"Default","GITBRANCH":"main","HOMEDRIVE":"C:","HOMEPATH":"\\Users\\erikd","IS_CI":"False","JAVA_HOME":"c:\\PROGRA~2\\Java\\jre-1.8","LOCALAPPDATA":"C:\\Users\\erikd\\AppData\\Local","LOGONSERVER":"\\\\ERIKD","NUMBER_OF_PROCESSORS":"12","NVM_HOME":"C:\\Users\\erikd\\AppData\\Roaming\\nvm","NVM_SYMLINK":"C:\\Program Files\\nodejs","ORIGINAL_XDG_CURRENT_DESKTOP":"undefined","OS":"Windows_NT","PATHEXT":".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC","POWERSHELL_DISTRIBUTION_CHANNEL":"MSI:Windows 10 Enterprise","PROCESSOR_ARCHITECTURE":"AMD64","PROCESSOR_IDENTIFIER":"Intel64 Family 6 Model 158 Stepping 10, GenuineIntel","PROCESSOR_LEVEL":"6","PROCESSOR_REVISION":"9e0a","PROMPT":"$P $C$E[1;32mmain$E[0m$F $G ","PUBLIC":"C:\\Users\\Public","RUNNER_TEMP":"c:\\src\\RUNNER_TEMP","RUNNER_TOOL_CACHE":"c:\\src\\RUNNER_TOOL_CACHE","SESSIONNAME":"Console","TEMP":"C:\\Users\\erikd\\AppData\\Local\\Temp","TMP":"C:\\Users\\erikd\\AppData\\Local\\Temp","UATDATA":"C:\\Windows\\CCM\\UATData\\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77","USERDNSDOMAIN":"redmond.corp.microsoft.com","USERDOMAIN":"REDMOND","USERDOMAIN_ROAMINGPROFILE":"REDMOND","USERNAME":"erikd","USERPROFILE":"C:\\Users\\erikd","VSCODE_CLI":"1","VSCODE_CODE_CACHE_PATH":"C:\\Users\\erikd\\AppData\\Roaming\\Code - Insiders\\CachedData\\8cc255e03ac7c51804cea1194b1ea864bbe2ccb6","VSCODE_CRASH_REPORTER_PROCESS_TYPE":"extensionHost","VSCODE_CWD":"c:\\temp\\temp\\temp\\sarif-tools","VSCODE_ESM_ENTRYPOINT":"vs/workbench/api/node/extensionHostProcess","VSCODE_HANDLES_UNCAUGHT_ERRORS":"true","VSCODE_IPC_HOOK":"\\\\.\\pipe\\aa8f8aec-1.97.0-insider-main-sock","VSCODE_NLS_CONFIG":"{\"userLocale\":\"en\",\"osLocale\":\"en-us\",\"resolvedLanguage\":\"en\",\"defaultMessagesFile\":\"C:\\\\Users\\\\erikd\\\\AppData\\\\Local\\\\Programs\\\\Microsoft VS Code Insiders\\\\resources\\\\app\\\\out\\\\nls.messages.json\",\"locale\":\"en\",\"availableLanguages\":{}}","VSCODE_PID":"54868","VSC_PYTHON_LOG_TELEMETRY":"1","WSLENV":"WT_SESSION:WT_PROFILE_ID:","WT_PROFILE_ID":"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}","WT_SESSION":"cea9fd5d-95a6-4365-816c-2a486ab65e71","...VSLogActivity":"1","ChocolateyInstall":"C:\\ProgramData\\chocolatey","ChocolateyLastPathUpdate":"133354936128795876","ComSpec":"C:\\WINDOWS\\system32\\cmd.exe","CommonProgramFiles":"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files","CommonProgramW6432":"C:\\Program Files\\Common Files","DriverData":"C:\\Windows\\System32\\Drivers\\DriverData","OculusBase":"C:\\Program Files\\Oculus\\","OneDrive":"C:\\Users\\erikd\\OneDrive - Microsoft","OneDriveCommercial":"C:\\Users\\erikd\\OneDrive - Microsoft","OneDriveConsumer":"C:\\Users\\erikd\\OneDrive","PSModulePath":"C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules","ProgramData":"C:\\ProgramData","ProgramFiles":"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)","ProgramW6432":"C:\\Program Files","SystemDrive":"C:","SystemRoot":"C:\\WINDOWS","windir":"C:\\WINDOWS","Path":"c:\\Users\\erikd\\AppData\\Local\\miniconda3\\condabin;C:\\Program Files\\Oculus\\Support\\oculus-runtime;C:\\Program Files\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Users\\erikd\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;c:\\util;C:\\Program Files (x86)\\Windows Kits\\10\\Windows Performance Toolkit\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;c:\\Users\\erikd\\AppData\\Local\\Programs\\cursor\\resources\\app\\bin;C:\\Program Files\\GitHub CLI\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Microsoft Network Monitor 3\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Program Files\\dotnet\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Quarto\\bin;C:\\Users\\erikd\\.cargo\\bin;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python312\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python312\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python39\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python39\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python38\\Scripts\\;C:\\Users\\erikd\\AppData\\Local\\Programs\\Python\\Python38\\;C:\\Users\\erikd\\AppData\\Roaming\\Python\\Scripts;c:\\users\\erikd\\appdata\\roaming\\python\\python312\\scripts;c:\\users\\erikd\\appdata\\roaming\\python\\python39\\scripts;C:\\Users\\erikd\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\erikd\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Users\\erikd\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\erikd\\AppData\\Local\\Programs\\Microsoft VS Code Insiders\\bin;C:\\Users\\erikd\\AppData\\Local\\Programs\\Azure Dev CLI\\;c:\\users\\erikd\\.local\\bin;C:\\Users\\erikd\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files\\mitmproxy\\bin;C:\\Users\\erikd\\AppData\\Local\\pixi\\bin\\;C:\\Users\\erikd\\.pixi\\bin;C:\\Users\\erikd\\.dotnet\\tools","PYTHONPATH":"c:\\Users\\erikd\\.vscode-insiders\\extensions\\ms-python.python-2024.23.2024121901-win32-x64\\python_files","TEST_RUN_PIPE":"\\\\.\\pipe\\python-test-results-7e790a29d4523a85a01b","COVERAGE_ENABLED":"True","RUN_TEST_IDS_PIPE":"C:\\Users\\erikd\\AppData\\Local\\Temp\\test-ids-4a606cb1c0d1503a31a8.txt"}
2025-01-08 11:24:44.731 [info] Running pytest with arguments: c:\Users\erikd\.vscode-insiders\extensions\ms-python.python-2024.23.2024121901-win32-x64\python_files\vscode_pytest\run_pytest_script.py --rootdir=c:\temp\temp\temp\sarif-tools for workspace c:\temp\temp\temp\sarif-tools 

2025-01-08 11:24:44.731 [info] > .\.venv\Scripts\python.exe ~\.vscode-insiders\extensions\ms-python.python-2024.23.2024121901-win32-x64\python_files\vscode_pytest\run_pytest_script.py --rootdir=.
2025-01-08 11:24:44.732 [info] cwd: .
2025-01-08 11:24:53.631 [error] Subprocess exited unsuccessfully with exit code 1 and signal null on workspace c:\temp\temp\temp\sarif-tools
2025-01-08 11:24:53.631 [error] Subprocess closed unsuccessfully with exit code 1 and signal null for workspace c:\temp\temp\temp\sarif-tools. Creating and sending error execution payload 

Extension version: 2024.23.2024121901
VS Code version: Code - Insiders 1.97.0-insider (8cc255e03ac7c51804cea1194b1ea864bbe2ccb6, 2025-01-06T05:06:20.407Z)
OS version: Windows_NT x64 10.0.26100
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.10
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true

Installed Extensions
Extension Name Extension Id Version
autopep8 ms- 2024.1.13171014
azure-dev ms- 0.8.4
azure-repos ms- 0.41.2024112101
black-formatter ms- 2024.5.13171011
codesandbox-projects Cod 0.2.142
copilot Git 1.255.1301
copilot-chat Git 0.24.2025010701
debugpy ms- 2024.14.0
dprint dpr 0.16.3
github-vscode-theme Git 6.3.5
gitlens eam 2025.1.704
hexeditor ms- 1.11.1
intellicode-api-usage-examples Vis 0.2.9
isort ms- 2023.13.13171013
js-debug ms- 1.96.0
js-debug-companion ms- 1.1.3
jupyter ms- 2025.1.2025010601
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
prettier-vscode esb 11.0.0
python ms- 2024.23.2024121901
remote-containers ms- 0.394.0
remote-explorer ms- 0.4.3
remote-repositories ms- 0.43.2024112101
remote-ssh ms- 0.116.1
remote-ssh-edit ms- 0.87.0
remote-wsl ms- 0.88.5
remotehub Git 0.64.0
theme-dracula dra 2.25.1
tokyo-night enk 1.0.9
unicodepalette Dal 1.0.4
VisualStudioDarkTheme Adr 1.0.1
vscode-docker ms- 1.29.3
vscode-eslint dba 3.0.10
vscode-github-actions git 0.27.0
vscode-js-profile-table ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
vscode-language-pack-bg MS- 1.48.3
vscode-language-pack-cs MS- 1.97.2025010109
vscode-language-pack-de MS- 1.97.2025010109
vscode-language-pack-es MS- 1.97.2025010109
vscode-language-pack-fr MS- 1.97.2025010109
vscode-language-pack-hu MS- 1.48.3
vscode-language-pack-it MS- 1.97.2025010109
vscode-language-pack-ja MS- 1.97.2025010109
vscode-language-pack-ko MS- 1.97.2025010109
vscode-language-pack-pl MS- 1.97.2025010109
vscode-language-pack-pt-BR MS- 1.97.2025010109
vscode-language-pack-ru MS- 1.97.2025010109
vscode-language-pack-tr MS- 1.97.2025010109
vscode-language-pack-zh-hans MS- 1.97.2025010109
vscode-language-pack-zh-hant MS- 1.97.2025010109
vscode-pylance ms- 2024.12.1
vscode-speech ms- 0.12.1
vscode-typescript-next ms- 5.8.20250107
vscodeintellicode Vis 1.3.2
System Info
Item Value
CPUs Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 x 3192)
GPU Status 2d_canvas: enabled
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 63.85GB (34.32GB free)
Process Argv --crash-reporter-id ea9101de-1db0-4418-be8b-d4d0b3c9b928
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
vsaa593:30376534
py29gd2263:31024238
c4g48928:30535728
2i9eh265:30646982
962ge761:30841072
pythonnoceb:30776497
dsvsc014:30777825
dsvsc015:30821418
pythonmypyd1:30859725
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:30980852
pythonait:30973460
dvdeprecation:31040973
dwnewjupyter:31046869
nativerepl1:31134653
pythonrstrctxt:31093868
nativeloc1:31118317
cf971741:31144450
e80f6927:31120813
iacca1:31150324
notype1:31143044
dwcopilot:31158714
h409b430:31177054
390bf810:31183120
c3hdf307:31184662
6074i472:31201624

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 8, 2025
@eleanorjboyd
Copy link
Member

Thank you for the detailed issue! I will investigate

@eleanorjboyd eleanorjboyd self-assigned this Jan 9, 2025
@eleanorjboyd eleanorjboyd added area-testing bug Issue identified by VS Code Team member as probable bug labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-testing bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

2 participants