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'}
# 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'}
The autopkgtest for spyder 5.4.4+ds-1 fails:
``` ======= ======= ======= ======= FAILURES ======= ======= ======= ======= ======= _______ _______ test_get_ user_environmen t_variables _______ _______ _______ _
=======
_______
def test_get_ user_environmen t_variables( ): environment_ variables function""" environment_ variables( )}
"""Test get_user_
# All platforms should have a path environment variable, but
# Windows may have mixed case.
keys = {k.lower() for k in get_user_
> 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.QtBot object at 0x7ff4e39caad0>
qtbot = <pytestqt.
def test_environ( environ_ dialog, qtbot):
environ_ dialog. show()
"""Test the environment variables dialog."""
assert environ_dialog
# All platforms should have a path environment variable, but dialog. get_value( )}
# Windows may have mixed case.
keys = {k.lower() for k in environ_
> 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:
``` local/sbin: /usr/local/ bin:/usr/ sbin:/usr/ bin:/sbin: /bin:/usr/ games:/ usr/local/ games:/ snap/bin
PATH=/usr/
```