Index: Lib/test/test_unicodedata.py |
=================================================================== |
--- Lib/test/test_unicodedata.py (revision 72153) |
+++ Lib/test/test_unicodedata.py (working copy) |
@@ -13,6 +13,7 @@ |
import test.support |
encoding = 'utf-8' |
+errors = 'surrogates' |
### Run tests |
@@ -61,7 +62,7 @@ |
(char + 'ABC').title(), |
] |
- h.update(''.join(data).encode(encoding)) |
+ h.update(''.join(data).encode(encoding, errors)) |
result = h.hexdigest() |
self.assertEqual(result, self.expectedchecksum) |