Run third-party stubtest under xvfb-run (#8719)

This commit is contained in:
Akuli
2022-09-10 18:34:11 +03:00
committed by GitHub
parent 43d4174590
commit ab022557e2
6 changed files with 23 additions and 12 deletions

View File

@@ -1,7 +1,2 @@
version = "0.9.*"
requires = ["types-Pillow"]
[tool.stubtest]
# pyautogui requires a display, resulting in the following error on the CI:
# failed to import, KeyError: 'DISPLAY'
skip = true

View File

@@ -0,0 +1,9 @@
# TODO: go through this allowlist, figure out which of them are false positives
pynput.keyboard.Controller._Key
pynput.keyboard.Controller._KeyCode
pynput.keyboard.Controller.__init__
pynput.keyboard._base.Controller._Key
pynput.keyboard._base.Controller._KeyCode
pynput.keyboard._dummy.Controller._Key
pynput.keyboard._dummy.Controller._KeyCode
pynput.mouse.Controller.__init__

View File

@@ -1,4 +1 @@
version = "1.7.*"
[tool.stubtest]
skip = true # A display server (e.g. X11) is required to import pynput