mirror of
https://github.com/beetbox/beets.git
synced 2026-01-04 06:53:27 +01:00
tests: made all tests pass on cygwin. Fixes #655
This commit is contained in:
parent
9d6c6f76bb
commit
bbb1f7a295
2 changed files with 3 additions and 2 deletions
|
|
@ -152,9 +152,8 @@ class TestHelper(object):
|
|||
self.lib = Library(dbpath, self.libdir)
|
||||
|
||||
def teardown_beets(self):
|
||||
self.lib._connection().close()
|
||||
del self.lib._connections
|
||||
del os.environ['BEETSDIR']
|
||||
# FIXME somehow close all open fd to the ilbrary
|
||||
self.remove_temp_dir()
|
||||
self.config.clear()
|
||||
beets.config.read(user=False, defaults=True)
|
||||
|
|
|
|||
|
|
@ -544,6 +544,8 @@ class ConfigTest(_common.TestCase):
|
|||
del os.environ['BEETSDIR']
|
||||
if os.getcwd != self._orig_cwd:
|
||||
os.chdir(self._orig_cwd)
|
||||
if hasattr(self.test_cmd, 'lib'):
|
||||
self.test_cmd.lib._connection().close()
|
||||
super(ConfigTest, self).tearDown()
|
||||
|
||||
def _make_test_cmd(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue