Skip to content

Commit

Permalink
unbreak the CI which doesn't have an X11 display
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Aug 27, 2024
1 parent a8e07ff commit 184d68e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/unittests/unit/gtk_common/keymap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,18 @@
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

import os
import unittest

from xpra.os_util import POSIX
from xpra.gtk.keymap import get_gtk_keymap


class TestKeymap(unittest.TestCase):

def test_get_gtk_keymap(self):
assert get_gtk_keymap()
if not POSIX or os.environ.get("DISPLAY"):
assert get_gtk_keymap()


def main():
Expand Down

0 comments on commit 184d68e

Please sign in to comment.