Blob Blame History Raw
From f00d7ae8478a7ddd36d68ab4fde8934b1641f45b Mon Sep 17 00:00:00 2001
From: Haikel Guemar <hguemar@fedoraproject.org>
Date: Tue, 16 Jun 2020 10:31:02 -0600
Subject: [PATCH] Skip tests irrelevant in the context of Fedora packaging

---
 tests/__init__.py       | 0
 tests/test_pyperclip.py | 5 +++++
 2 files changed, 5 insertions(+)
 create mode 100644 tests/__init__.py

diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/tests/test_pyperclip.py b/tests/test_pyperclip.py
index 7519d94..62a6f20 100644
--- a/tests/test_pyperclip.py
+++ b/tests/test_pyperclip.py
@@ -133,6 +133,7 @@ class TestOSX(_TestClipboard):
             clipboard = init_osx_pyobjc_clipboard()
 
 
+@unittest.skip("Not relevant in Fedora package build")
 class TestGtk(_TestClipboard):
     if HAS_DISPLAY:
         try:
@@ -143,6 +144,7 @@ class TestGtk(_TestClipboard):
             clipboard = init_gtk_clipboard()
 
 
+@unittest.skip("Not relevant in Fedora package build")
 class TestQt(_TestClipboard):
     if HAS_DISPLAY:
         try:
@@ -158,16 +160,19 @@ class TestQt(_TestClipboard):
             clipboard = init_qt_clipboard()
 
 
+@unittest.skip("Not relevant in Fedora package build")
 class TestXClip(_TestClipboard):
     if _executable_exists("xclip"):
         clipboard = init_xclip_clipboard()
 
 
+@unittest.skip("Not relevant in Fedora package build")
 class TestXSel(_TestClipboard):
     if _executable_exists("xsel"):
         clipboard = init_xsel_clipboard()
 
 
+@unittest.skip("Not relevant in Fedora package build")
 class TestKlipper(_TestClipboard):
     if _executable_exists("klipper") and _executable_exists("qdbus"):
         clipboard = init_klipper_clipboard()