summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2000-09-27 12:24:34 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2000-09-27 12:24:34 (GMT)
commit67ceca7addbe6b202aa5043b065ac2e3c9749449 (patch)
tree50189457fb4358a831fef2bd0134f808cc0f78fa /Lib
parent6a7768ae4f90a79d79f4221f676281021f5f6f69 (diff)
downloadcpython-67ceca7addbe6b202aa5043b065ac2e3c9749449.zip
cpython-67ceca7addbe6b202aa5043b065ac2e3c9749449.tar.gz
cpython-67ceca7addbe6b202aa5043b065ac2e3c9749449.tar.bz2
Fixed encoding to use an endianness independent format.
Diffstat (limited to 'Lib')
-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():