python/elasticsearch: update to 8.16.0
[oi-userland.git] / components / python / pyperclip / patches / 03-test-HAS_DISPLAY.patch
blob4d8c04ce85fb9f56dd5eecc907eade1ce974ae1d
1 https://github.com/asweigart/pyperclip/issues/263
3 --- pyperclip-1.9.0/tests/test_pyperclip.py.orig
4 +++ pyperclip-1.9.0/tests/test_pyperclip.py
5 @@ -8,7 +8,7 @@
6 #import sys
7 #sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
9 -from pyperclip import _executable_exists, HAS_DISPLAY
10 +from pyperclip import _executable_exists
11 from pyperclip import (init_osx_pbcopy_clipboard, init_osx_pyobjc_clipboard,
12 init_dev_clipboard_clipboard,
13 init_qt_clipboard,
14 @@ -134,16 +134,6 @@
15 clipboard = init_osx_pyobjc_clipboard()
18 -class TestQt(_TestClipboard):
19 - if HAS_DISPLAY:
20 - try:
21 - import PyQt5.QtWidgets
22 - except ImportError:
23 - pass
24 - else:
25 - clipboard = init_qt_clipboard()
28 class TestXClip(_TestClipboard):
29 if _executable_exists("xclip"):
30 clipboard = init_xclip_clipboard()