From: Stefano Rivera <stefanor@debian.org>
Date: Mon, 12 Mar 2018 14:01:05 -0700
Subject: Discogs is not available in debian.

---
 setup.py             | 1 -
 test/test_discogs.py | 1 +
 test/testall.py      | 5 ++++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 24c5710..dd89401 100755
--- a/setup.py
+++ b/setup.py
@@ -106,7 +106,6 @@ setup(
         'pyxdg',
         'pathlib',
         'python-mpd2',
-        'discogs-client'
     ],
 
     # Plugin (optional) dependencies:
diff --git a/test/test_discogs.py b/test/test_discogs.py
index 74f9a56..927ebcd 100644
--- a/test/test_discogs.py
+++ b/test/test_discogs.py
@@ -22,6 +22,7 @@ from test import _common
 from test._common import Bag
 from test.helper import capture_log
 
+raise unittest.SkipTest("discogs is not available in Debian")
 from beetsplug.discogs import DiscogsPlugin
 
 
diff --git a/test/testall.py b/test/testall.py
index 88eb701..01081eb 100755
--- a/test/testall.py
+++ b/test/testall.py
@@ -35,7 +35,10 @@ def suite():
         match = re.match(r'(test_\S+)\.py$', fname)
         if match:
             modname = match.group(1)
-            s.addTest(__import__(modname).suite())
+            try:
+                s.addTest(__import__(modname).suite())
+            except unittest.SkipTest:
+                continue
     return s
 
 
