Blame SOURCES/0001-Skip-tests-irrelevant-in-the-context-of-Fedora-packa.patch

be2733
From f00d7ae8478a7ddd36d68ab4fde8934b1641f45b Mon Sep 17 00:00:00 2001
be2733
From: Haikel Guemar <hguemar@fedoraproject.org>
be2733
Date: Tue, 16 Jun 2020 10:31:02 -0600
be2733
Subject: [PATCH] Skip tests irrelevant in the context of Fedora packaging
be2733
be2733
---
be2733
 tests/__init__.py       | 0
be2733
 tests/test_pyperclip.py | 5 +++++
be2733
 2 files changed, 5 insertions(+)
be2733
 create mode 100644 tests/__init__.py
be2733
be2733
diff --git a/tests/__init__.py b/tests/__init__.py
be2733
new file mode 100644
be2733
index 0000000..e69de29
be2733
diff --git a/tests/test_pyperclip.py b/tests/test_pyperclip.py
be2733
index 7519d94..62a6f20 100644
be2733
--- a/tests/test_pyperclip.py
be2733
+++ b/tests/test_pyperclip.py
be2733
@@ -133,6 +133,7 @@ class TestOSX(_TestClipboard):
be2733
             clipboard = init_osx_pyobjc_clipboard()
be2733
 
be2733
 
be2733
+@unittest.skip("Not relevant in Fedora package build")
be2733
 class TestGtk(_TestClipboard):
be2733
     if HAS_DISPLAY:
be2733
         try:
be2733
@@ -143,6 +144,7 @@ class TestGtk(_TestClipboard):
be2733
             clipboard = init_gtk_clipboard()
be2733
 
be2733
 
be2733
+@unittest.skip("Not relevant in Fedora package build")
be2733
 class TestQt(_TestClipboard):
be2733
     if HAS_DISPLAY:
be2733
         try:
be2733
@@ -158,16 +160,19 @@ class TestQt(_TestClipboard):
be2733
             clipboard = init_qt_clipboard()
be2733
 
be2733
 
be2733
+@unittest.skip("Not relevant in Fedora package build")
be2733
 class TestXClip(_TestClipboard):
be2733
     if _executable_exists("xclip"):
be2733
         clipboard = init_xclip_clipboard()
be2733
 
be2733
 
be2733
+@unittest.skip("Not relevant in Fedora package build")
be2733
 class TestXSel(_TestClipboard):
be2733
     if _executable_exists("xsel"):
be2733
         clipboard = init_xsel_clipboard()
be2733
 
be2733
 
be2733
+@unittest.skip("Not relevant in Fedora package build")
be2733
 class TestKlipper(_TestClipboard):
be2733
     if _executable_exists("klipper") and _executable_exists("qdbus"):
be2733
         clipboard = init_klipper_clipboard()