31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
|
Index: pyperclip-1.9.0/tests/test_pyperclip.py
|
||
|
===================================================================
|
||
|
--- pyperclip-1.9.0.orig/tests/test_pyperclip.py
|
||
|
+++ pyperclip-1.9.0/tests/test_pyperclip.py
|
||
|
@@ -8,7 +8,7 @@ import platform
|
||
|
#import sys
|
||
|
#sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
|
||
|
|
||
|
-from pyperclip import _executable_exists, HAS_DISPLAY
|
||
|
+from pyperclip import _executable_exists
|
||
|
from pyperclip import (init_osx_pbcopy_clipboard, init_osx_pyobjc_clipboard,
|
||
|
init_dev_clipboard_clipboard,
|
||
|
init_qt_clipboard,
|
||
|
@@ -134,16 +134,6 @@ class TestOSX(_TestClipboard):
|
||
|
clipboard = init_osx_pyobjc_clipboard()
|
||
|
|
||
|
|
||
|
-class TestQt(_TestClipboard):
|
||
|
- if HAS_DISPLAY:
|
||
|
- try:
|
||
|
- import PyQt5.QtWidgets
|
||
|
- except ImportError:
|
||
|
- pass
|
||
|
- else:
|
||
|
- clipboard = init_qt_clipboard()
|
||
|
-
|
||
|
-
|
||
|
class TestXClip(_TestClipboard):
|
||
|
if _executable_exists("xclip"):
|
||
|
clipboard = init_xclip_clipboard()
|