summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tarfile.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-05 21:43:57 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-05 21:43:57 (GMT)
commitde629d46f2a143e230398a820e9c090295f72ddb (patch)
treefc2cbab3df2c942d77f0f6ead9dc76e650ecd85d /Lib/test/test_tarfile.py
parentaac786e5862ac032c903215d6632898af3002532 (diff)
downloadcpython-de629d46f2a143e230398a820e9c090295f72ddb.zip
cpython-de629d46f2a143e230398a820e9c090295f72ddb.tar.gz
cpython-de629d46f2a143e230398a820e9c090295f72ddb.tar.bz2
Issue #8390: tarfile uses surrogateespace as the default error handler
(instead of replace in read mode or strict in write mode)
Diffstat (limited to 'Lib/test/test_tarfile.py')
-rw-r--r--Lib/test/test_tarfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py
index 43527ef..2db18fe 100644
--- a/Lib/test/test_tarfile.py
+++ b/Lib/test/test_tarfile.py
@@ -1118,8 +1118,8 @@ class UstarUnicodeTest(unittest.TestCase):
if self.format != tarfile.PAX_FORMAT:
tar = tarfile.open(tmpname, encoding="ascii")
t = tar.getmember("foo")
- self.assertEqual(t.uname, "\ufffd\ufffd\ufffd")
- self.assertEqual(t.gname, "\ufffd\ufffd\ufffd")
+ self.assertEqual(t.uname, "\udce4\udcf6\udcfc")
+ self.assertEqual(t.gname, "\udce4\udcf6\udcfc")
class GNUUnicodeTest(UstarUnicodeTest):