Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit fa2f02a

Browse files
committed
Fix: Correct virtual display use on Linux.
1 parent baa89c0 commit fa2f02a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runestone/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def setUpModule(self):
190190
# Testing time in dominated by browser startup/shutdown. So, simply run all tests in a module in a single browser instance to speed things up. See ``RunestoneTestCase.setUp`` for additional code to (mostly) clear the browser between tests.
191191
#
192192
# `PyVirtualDisplay <http://pyvirtualdisplay.readthedocs.io/en/latest/>`_ only runs on X-windows, meaning Linux. Mac seems to have `some support <https://support.apple.com/en-us/HT201341>`_. Windows is out of the question.
193-
if IS_LINUX:
193+
if IS_LINUX and not os.environ.get("DISPLAY"):
194194
self.display = Display(visible=0, size=(1280, 1024))
195195
self.display.start()
196196
else:

0 commit comments

Comments
 (0)