mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 12:32:33 +01:00
Use byte path consistently in hidden test (#2168)
This commit is contained in:
parent
162bf6a594
commit
7061f7ff47
1 changed files with 3 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ from test._common import unittest
|
|||
import sys
|
||||
import tempfile
|
||||
from beets.util import hidden
|
||||
from beets import util
|
||||
import subprocess
|
||||
import errno
|
||||
import ctypes
|
||||
|
|
@ -71,7 +72,8 @@ class HiddenFileTest(unittest.TestCase):
|
|||
return
|
||||
|
||||
with tempfile.NamedTemporaryFile(prefix='.tmp') as f:
|
||||
self.assertTrue(hidden.is_hidden(f.name))
|
||||
fn = util.bytestring_path(f.name)
|
||||
self.assertTrue(hidden.is_hidden(fn))
|
||||
|
||||
|
||||
def suite():
|
||||
|
|
|
|||
Loading…
Reference in a new issue