From: Stefano Rivera <stefanor@debian.org>
Date: Sun, 12 Aug 2018 17:21:33 -0700
Subject: Skip unreliable tests

Some tests sometimes fail (e.g. under autopkgtests)
---
 test/test_library.py | 1 +
 test/test_plugins.py | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/test/test_library.py b/test/test_library.py
index b5e6d4e..977fbec 100644
--- a/test/test_library.py
+++ b/test/test_library.py
@@ -1249,6 +1249,7 @@ class WriteTest(BeetsTestCase):
         with pytest.raises(beets.library.ReadError):
             item.write()
 
+    @unittest.skip('fails under some autopkgtests')
     def test_no_write_permission(self):
         item = self.add_item_fixture()
         path = syspath(item.path)
diff --git a/test/test_plugins.py b/test/test_plugins.py
index efa26d0..b9dcb62 100644
--- a/test/test_plugins.py
+++ b/test/test_plugins.py
@@ -162,6 +162,7 @@ class EventsTest(PluginImportTestCase):
     def setUp(self):
         super().setUp()
 
+    @unittest.skip('unreliable')
     def test_import_task_created(self):
         self.importer = self.setup_importer(pretend=True)
 
@@ -179,6 +180,7 @@ class EventsTest(PluginImportTestCase):
             f"  {displayable_path(self.import_media[1].path)}",
         ]
 
+    @unittest.skip('unreliable')
     def test_import_task_created_with_plugin(self):
         class ToSingletonPlugin(plugins.BeetsPlugin):
             def __init__(self):
