diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2009-05-10 08:15:24 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2009-05-10 08:15:24 (GMT) |
commit | 43c57785d3319249c03c3fa46c9df42a8ccd3e52 (patch) | |
tree | 199d57826897ac525b4057253a82aaaefcb6ef82 /Lib/test/test_os.py | |
parent | e0a2b72e61a474dceb948be57cb2983f70ab07fb (diff) | |
download | cpython-43c57785d3319249c03c3fa46c9df42a8ccd3e52.zip cpython-43c57785d3319249c03c3fa46c9df42a8ccd3e52.tar.gz cpython-43c57785d3319249c03c3fa46c9df42a8ccd3e52.tar.bz2 |
Rename utf8b error handler to surrogateescape.
Diffstat (limited to 'Lib/test/test_os.py')
-rw-r--r-- | Lib/test/test_os.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_os.py b/Lib/test/test_os.py index 014d874..c680d8d 100644 --- a/Lib/test/test_os.py +++ b/Lib/test/test_os.py @@ -708,13 +708,13 @@ if sys.platform != 'win32': self.fsencoding = sys.getfilesystemencoding() sys.setfilesystemencoding("utf-8") self.dir = support.TESTFN - self.bdir = self.dir.encode("utf-8", "utf8b") + self.bdir = self.dir.encode("utf-8", "surrogateescape") os.mkdir(self.dir) self.unicodefn = [] for fn in self.filenames: f = open(os.path.join(self.bdir, fn), "w") f.close() - self.unicodefn.append(fn.decode("utf-8", "utf8b")) + self.unicodefn.append(fn.decode("utf-8", "surrogateescape")) def tearDown(self): shutil.rmtree(self.dir) |