mirror of
https://github.com/beetbox/beets.git
synced 2026-02-21 23:03:26 +01:00
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:
parent
85e9097967
commit
c086a634b6
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue