Closed
Description
Type: Bug
Behaviour
Expected vs. Actual
The new pythonTestAdapter
errors out instead of skipping the test.
Steps to reproduce:
Have a file like this in your test folder:
from unittest import SkipTest
raise SkipTest("This is unittest.SkipTest calling")
def test_example():
assert 1 == 1
Diagnostic data
- Python version (& distribution if applicable, e.g. Anaconda): 3.10.12
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
- Value of the
python.languageServer
setting: Pylance
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
2023-07-18 20:47:13.010 [error] pytest test discovery error
unittest.case.SkipTest: This is unittest.SkipTest calling
Check Python Test Logs for more details.
User Settings
languageServer: "Pylance"
linting
• mypyArgs: "<placeholder>"
• mypyEnabled: true
formatting
• provider: "black"
testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true
experiments
• optInto: ["pythonTestAdapter"]
Extension version: 2023.12.0
VS Code version: Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:22:25.257Z)
OS version: Linux x64 6.2.6-76060206-generic
Modes:
System Info
Item | Value |
---|---|
CPUs | AMD Ryzen 9 5900X 12-Core Processor (24 x 4112) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off 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 video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
Load (avg) | 2, 2, 2 |
Memory (System) | 125.71GB (99.49GB free) |
Process Argv | /home/shh/Development/holoviz/holoviz.code-workspace |
Screen Reader | no |
VM | 0% |
DESKTOP_SESSION | pop |
XDG_CURRENT_DESKTOP | Unity |
XDG_SESSION_DESKTOP | pop |
XDG_SESSION_TYPE | x11 |