summaryrefslogtreecommitdiff
path: root/obnamlib/vfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'obnamlib/vfs.py')
-rw-r--r--obnamlib/vfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/vfs.py b/obnamlib/vfs.py
index 48ed46a5..2c68e1b9 100644
--- a/obnamlib/vfs.py
+++ b/obnamlib/vfs.py
@@ -374,7 +374,7 @@ class VfsTests(object): # pragma: no cover
self.assert_(self.fs.isdir('foo'))
def test_listdir_returns_plain_strings_only(self):
- self.fs.write_file(u'M\u00E4kel\u00E4', 'data')
+ self.fs.write_file(u'M\u00E4kel\u00E4'.encode('utf-8'), 'data')
names = self.fs.listdir('.')
types = [type(x) for x in names]
self.assertEqual(types, [str])