From: Marc-André Lemburg Date: Wed, 27 Sep 2000 12:24:34 +0000 (+0000) Subject: Fixed encoding to use an endianness independent format. X-Git-Tag: v2.0c1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67ceca7addbe6b202aa5043b065ac2e3c9749449;p=thirdparty%2FPython%2Fcpython.git Fixed encoding to use an endianness independent format. --- diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py index b604c2823336..0dc575615e4d 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():