-
Notifications
You must be signed in to change notification settings - Fork 33
Description
pytest test discovery error for workspace:TypeError: unsupported operand type(s) for |: 'types.UnionType' and 'str' Check Python Logs for more details.
python version :3.12.10
pytest version :8.4.1
vs:1.101
log
'
2025-07-06 16:33:58.316 [error] pytest test discovery error for workspace: c:\project\python\fetchdata
TypeError: unsupported operand type(s) for |: 'types.UnionType' and 'str'
Check Python Logs for more details.
TypeError: unsupported operand type(s) for |: 'types.UnionType' and 'str'
Check Python Logs for more details.
TypeError: unsupported operand type(s) for |: 'types.UnionType' and 'str'
Check Python Logs for more details.
Interrupted: 3 errors during collection
Check Python Logs for more details.
2025-07-06 16:33:58.316 [info] =========================== short test summary info ===========================
ERROR tests/test_exchange.py - TypeError: unsupported operand type(s) for |: ...
ERROR tests/test_factory.py - TypeError: unsupported operand type(s) for |: '...
ERROR tests/test_util.py - TypeError: unsupported operand type(s) for |: 'typ...
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!
==================== no tests collected, 3 errors in 1.52s ====================
2025-07-06 16:33:58.582 [error] Subprocess exited unsuccessfully with exit code 2 and signal null on workspace c:\project\python\fetchdata.
2025-07-06 16:33:58.582 [error] Subprocess exited unsuccessfully with exit code 2 and signal null on workspace c:\project\python\fetchdata. Creating and sending error discovery payload
2025-07-06 16:33:58.582 [error] pytest test discovery error for workspace: c:\project\python\fetchdata
The python test process was terminated before it could exit on its own, the process errored with: Code: 2, Signal: null for workspace c:\project\python\fetchdata
'