File project.diff of Package python-SecretStorage

--- python-SecretStorage.spec.orig
+++ python-SecretStorage.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-SecretStorage
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,8 @@
 #
 
 
+%bcond_without  test
+
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-SecretStorage
 Version:        2.3.1
@@ -66,10 +68,12 @@ The documentation can be found on `pytho
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%if %{with test}
 %check
 # gnome-keyring "forgets" to create this directory under certain conditions
 mkdir -p $HOME/.cache
 %python_expand dbus-run-session -- $python -m unittest discover -s tests
+%endif
 
 %files %{python_files}
 %license LICENSE