Test string must be Unicode
This commit is contained in:
1 parent
21d3622c2e
commit
5d8535cb9c
2 files changed
+2
-2
No files matched your search
@@ -334,7 +334,7 @@ class IsHiddenPathTest(unittest.TestCase):
|
||||
self.path_always_hidden = os.path.join(self.basepath, ".always_hidden.txt")
|
||||
|
||||
import sys
|
||||
for attr in ("path_always_visible", "path_hidden_on_windows", "path_always_hidden"):
|
||||
for attr in (u"path_always_visible", u"path_hidden_on_windows", u"path_always_hidden"):
|
||||
path = getattr(self, attr)
|
||||
with io.open(path, 'wt+', encoding='utf-8') as f:
|
||||
f.write(attr)
|
||||
|
||||
Reference in new issue
Block a user