diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-08-09 11:48:46 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-08-09 11:48:46 +0100 |
commit | 97bd62512299eabc112b697a546d93d718c3ab17 (patch) | |
tree | 091acac98e798aef26c8957e747cd4025d646d6b | |
parent | d13b2ae84313f4b30b2091cd839af6fc361e0bca (diff) | |
download | obnam-97bd62512299eabc112b697a546d93d718c3ab17.tar.gz |
Fix test to run even in C locale.
-rw-r--r-- | obnamlib/vfs.py | 2 |
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]) |