Skip to content

1.6.6: pytest is failing #1242

@kloczek

Description

@kloczek

Environment data

  • debugpy version: 1.6.6
  • OS and version: Linux x86/64
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.16
  • Using VS Code or Visual Studio: No

I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.

  • python3 -sBm build -w --no-isolation
  • because I'm calling build with --no-isolation I'm using during all processes only locally installed modules
  • install .whl file in </install/prefix>
  • run pytest with $PYTHONPATH pointing to sitearch and sitelib inside </install/prefix>
  • build is performed in env which is cut off from access to the public network (pytest is executed with -m "not network")

I'm assuming that probably still sometjing is missing in build env of that package however I was unable to figure out what exactly it could be. May I ask for help/some hints?

Here is pytest summary output:

Details
=========================== short test summary info ============================
SKIPPED [3] tests/debugpy/test_args.py:40: Shell expansion is not supported for "internalConsole"
SKIPPED [5] tests/debugpy/test_multiproc.py:48: https://github.com/microsoft/ptvsd/issues/1887
SKIPPED [3] tests/debugpy/test_multiproc.py:476: job objects are specific to Windows
SKIPPED [3] tests/debugpy/test_run.py:233: Skipped
FAILED tests/debugpy/test_run.py::test_nodebug[module-launch(console=integratedTerminal)]
FAILED tests/debugpy/test_gevent.py::test_gevent[program-launch]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-custompy-None-launch(console=externalTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-custompy,-O-None-launch(console=internalConsole)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-python-None-None-launch(console=internalConsole)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-python-custompy,-O-None-launch(console=internalConsole)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-custompy,-O-None-launch(console=integratedTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-python-None-None-launch(console=integratedTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-python-custompy,-O-None-launch(console=integratedTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-custompy,-O-None-launch(console=externalTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-python-None-None-launch(console=externalTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-python-custompy,-O-None-launch(console=externalTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-python-custompy-None-launch(console=internalConsole)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-None-None-launch(console=internalConsole)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-python-custompy-None-launch(console=integratedTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-None-None-launch(console=integratedTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-python-custompy-None-launch(console=externalTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-None-None-launch(console=externalTerminal)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-custompy-None-launch(console=internalConsole)]
FAILED tests/debugpy/test_run.py::test_custom_python_args[program-pythonPath-custompy-None-launch(console=integratedTerminal)]
FAILED tests/debugpy/test_run.py::test_nodebug[module-launch(console=externalTerminal)]
=========== 21 failed, 1153 passed, 14 skipped in 235.74s (0:03:55) ============

Here is list of installed modules in build env

Details
Package            Version
------------------ --------------
asgiref            3.5.2
attrs              22.2.0
backports.zoneinfo 0.2.1
build              0.10.0
charset-normalizer 3.1.0
click              8.1.3
Cython             0.29.33
distro             1.8.0
Django             4.1.7
exceptiongroup     1.0.0
execnet            1.9.0
Flask              2.2.2
gpg                1.18.0-unknown
idna               3.4
importlib-metadata 6.0.0
iniconfig          2.0.0
itsdangerous       2.1.2
Jinja2             3.1.2
libcomps           0.1.19
MarkupSafe         2.1.2
packaging          23.0
pip                23.0.1
pluggy             1.0.0
psutil             5.9.2
pyproject_hooks    1.0.0
pytest             7.2.2
pytest-timeout     2.1.0
pytest-xdist       3.2.0
python-dateutil    2.8.2
requests           2.28.2
rpm                4.17.0
setuptools         65.6.3
six                1.16.0
sqlparse           0.4.2
tomli              2.0.1
urllib3            1.26.15
Werkzeug           2.2.3
wheel              0.38.4
zipp               3.15.0

And hre is full pytest log python-debugpy.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2test issueTest failures and other issues with test runs and CI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions