diff options
author | Marc-André Lemburg <mal@egenix.com> | 2000-09-27 12:24:34 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2000-09-27 12:24:34 (GMT) |
commit | 67ceca7addbe6b202aa5043b065ac2e3c9749449 (patch) | |
tree | 50189457fb4358a831fef2bd0134f808cc0f78fa /Lib/test | |
parent | 6a7768ae4f90a79d79f4221f676281021f5f6f69 (diff) | |
download | cpython-67ceca7addbe6b202aa5043b065ac2e3c9749449.zip cpython-67ceca7addbe6b202aa5043b065ac2e3c9749449.tar.gz cpython-67ceca7addbe6b202aa5043b065ac2e3c9749449.tar.bz2 |
Fixed encoding to use an endianness independent format.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_unicodedata.py | 4 |
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(): |