11
0
Files
python-pyperclip/tests.patch
Matej Cepl 492e6bdef0 - Update to 1.9.0
* Automatically cast the copy() argument to a string for all data types.
  * _py3_executable_exists and _py2_executable_exists had swapped names; fixed.
  * Pyperclip now "stringifies" all data types by passing it to str() (or 
    globals()['__builtins__'].unicode on Python 2), so passing [1, 2, 3] would 
    put '[1, 2, 3]' on the clipboard.
  * shutil.which() replaces the custom code (except in 2.7 and below which doesn't 
    have shutil.which()).
  * Remove waitForPaste() and waitForNewPaste() functions, these aren't something 
    the core library should have.
  * Reordered so that xclip is chosen before xsel since xclip is more popular.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperclip?expand=0&rev=25
2024-10-17 08:05:39 +00:00

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()