summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicodedata.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_unicodedata.py')
-rw-r--r--Lib/test/test_unicodedata.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index b604c28..0dc5756 100644
--- a/Lib/test/test_unicodedata.py
+++ b/Lib/test/test_unicodedata.py
@@ -7,6 +7,8 @@
"""#"
import sha
+encoding = 'utf-8'
+
def test_methods():
h = sha.sha()
@@ -48,7 +50,7 @@ def test_methods():
(char + u'ABC').title(),
]
- h.update(u''.join(data).encode('unicode-internal'))
+ h.update(u''.join(data).encode(encoding))
return h.hexdigest()
def test_unicodedata():