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