Skip to content

Commit

Permalink
* Linux system requires XAUTHORITY environment variable. Fixes test_p…
Browse files Browse the repository at this point in the history
…db_eventloop.
  • Loading branch information
rclary authored and mrclary committed May 29, 2021
1 parent ef45f35 commit e5c494e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -1760,9 +1760,9 @@ def test_pdb_eventloop(ipyconsole, qtbot, backend):
"""Check if pdb works with every backend. (only testing 3)."""
# Skip failing tests
if backend == 'tk' and (os.name == 'nt' or PY2):
return
pytest.skip()
if backend == 'osx' and (sys.platform != "darwin" or PY2):
return
pytest.skip()

shell = ipyconsole.get_current_shellwidget()
qtbot.waitUntil(lambda: shell._prompt_html is not None,
Expand Down
2 changes: 1 addition & 1 deletion spyder/utils/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if os.name == 'nt':
REQ_ENV_VARS.extend(['PATH', 'SYSTEMROOT', 'SYSTEMDRIVE', 'USERPROFILE'])
elif sys.platform.startswith('linux'):
REQ_ENV_VARS.extend(['HOME', 'DISPLAY'])
REQ_ENV_VARS.extend(['HOME', 'DISPLAY', 'XAUTHORITY'])
elif sys.platform == 'darwin':
REQ_ENV_VARS.extend(['HOME'])

Expand Down

0 comments on commit e5c494e

Please sign in to comment.