Comment 0 for bug 2033518

Revision history for this message
Benjamin Drung (bdrung) wrote :

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
```