wrap keys() result in a list() in importadded tests

This commit is contained in:
Johnny Robeson 2016-06-12 18:17:27 -04:00
parent 10dda13d2a
commit 92950ec532

View file

@ -156,7 +156,7 @@ class ImportAddedTest(unittest.TestCase, ImportHelper):
# Newer Item path mtimes as if Beets had modified them
modify_mtimes(items_added_before.keys(), offset=10000)
# Reimport
import_dir = os.path.dirname(items_added_before.keys()[0])
import_dir = os.path.dirname(list(items_added_before.keys())[0])
self._setup_import_session(import_dir=import_dir, singletons=True)
self.importer.run()
# Verify the reimported items