From 67ceca7addbe6b202aa5043b065ac2e3c9749449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Wed, 27 Sep 2000 12:24:34 +0000 Subject: [PATCH] Fixed encoding to use an endianness independent format. --- Lib/test/test_unicodedata.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py index b604c282333..0dc575615e4 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():