2023-08-30 11:03:13 |
Benjamin Drung |
description |
The autopkgtest for spyder 5.4.4+ds-1 fails:
```
=================================== FAILURES ===================================
_____________________ test_get_user_environment_variables ______________________
def test_get_user_environment_variables():
"""Test get_user_environment_variables function"""
# All platforms should have a path environment variable, but
# Windows may have mixed case.
keys = {k.lower() for k in get_user_environment_variables()}
> assert "path" in keys
E AssertionError: assert 'path' in {'_', 'debuginfod_urls', 'home', 'lc_ctype', 'pwd', 'shlvl'}
spyder/utils/tests/test_environ.py:42: AssertionError
_________________________________ test_environ _________________________________
environ_dialog = <spyder.utils.environ.UserEnvDialog object at 0x7ff4e3e3b400>
qtbot = <pytestqt.qtbot.QtBot object at 0x7ff4e39caad0>
def test_environ(environ_dialog, qtbot):
"""Test the environment variables dialog."""
environ_dialog.show()
assert environ_dialog
# All platforms should have a path environment variable, but
# Windows may have mixed case.
keys = {k.lower() for k in environ_dialog.get_value()}
> assert "path" in keys
E AssertionError: assert 'path' in {'_', 'debuginfod_urls', 'home', 'lc_ctype', 'pwd', 'shlvl'}
spyder/utils/tests/test_environ.py:64: AssertionError
=============================== warnings summary ===============================
```
Running `env` before the test is executed in the autopkgtest shows that `PATH` is set:
```
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
``` |
The autopkgtest for spyder 5.4.4+ds-1 fails:
```
=================================== FAILURES ===================================
_____________________ test_get_user_environment_variables ______________________
def test_get_user_environment_variables():
"""Test get_user_environment_variables function"""
# All platforms should have a path environment variable, but
# Windows may have mixed case.
keys = {k.lower() for k in get_user_environment_variables()}
> assert "path" in keys
E AssertionError: assert 'path' in {'_', 'debuginfod_urls', 'home', 'lc_ctype', 'pwd', 'shlvl'}
spyder/utils/tests/test_environ.py:42: AssertionError
_________________________________ test_environ _________________________________
environ_dialog = <spyder.utils.environ.UserEnvDialog object at 0x7ff4e3e3b400>
qtbot = <pytestqt.qtbot.QtBot object at 0x7ff4e39caad0>
def test_environ(environ_dialog, qtbot):
"""Test the environment variables dialog."""
environ_dialog.show()
assert environ_dialog
# All platforms should have a path environment variable, but
# Windows may have mixed case.
keys = {k.lower() for k in environ_dialog.get_value()}
> assert "path" in keys
E AssertionError: assert 'path' in {'_', 'debuginfod_urls', 'home', 'lc_ctype', 'pwd', 'shlvl'}
spyder/utils/tests/test_environ.py:64: AssertionError
=============================== warnings summary ===============================
```
Running `env` before the test is executed in the autopkgtest shows that `PATH` is set:
```
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
```
But running something similar to the spyder code does not contain the PATH variable:
```
$ env -i bash -l -c env | sort
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com
PWD=/tmp/autopkgtest.wq0cE8/build.3Mr/real-tree
SHLVL=0
_=/bin/env
``` |
|