Fixed testcase TestLibrary.test_no_write_permission

on windows it is important to use syspath with functions
to modify path
This commit is contained in:
Peter Kessen 2015-12-05 14:58:03 +01:00
parent 85e9097967
commit c086a634b6

View file

@ -36,6 +36,7 @@ from beets import util
from beets import plugins
from beets import config
from beets.mediafile import MediaFile
from beets.util import syspath
from test.helper import TestHelper
# Shortcut to path normalization.
@ -1044,7 +1045,7 @@ class WriteTest(unittest.TestCase, TestHelper):
def test_no_write_permission(self):
item = self.add_item_fixture()
path = item.path
path = syspath(item.path)
os.chmod(path, stat.S_IRUSR)
try: