Skip to content

Run test_tkinter in CI #698

@geofft

Description

@geofft

From src/verify_distribution.py:

    @unittest.skipIf("TCL_LIBRARY" not in os.environ, "TCL_LIBRARY not set")
    @unittest.skipIf("DISPLAY" not in os.environ, "DISPLAY not set")
    def test_tkinter(self):
        import tkinter as tk
        ...

We ought to be able to run this in Xvfb and ensure it runs, though we'd have to automate clicking the button, either by injecting a button click or by modifying the test to quit on its own.

(It looks like Tk is pretty heavily tied to X11 at the moment, but if we feel like being complete, we could also test under Xwayland + some headless Wayland compositor like WLR_BACKENDS=headless sway or weston --backend=headless.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions