summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicodedata.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-27 18:31:48 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-27 18:31:48 (GMT)
commit9c62772d5e0e096458c6f5c8e50cc84fcc1383f7 (patch)
tree088d8c2701cf01ed6e516d83aff3182de9cb555d /Lib/test/test_unicodedata.py
parent35d9428046e74cd9c36fb4507ca048dad32097cc (diff)
downloadcpython-9c62772d5e0e096458c6f5c8e50cc84fcc1383f7.zip
cpython-9c62772d5e0e096458c6f5c8e50cc84fcc1383f7.tar.gz
cpython-9c62772d5e0e096458c6f5c8e50cc84fcc1383f7.tar.bz2
Changes in anticipation of stricter str vs. bytes enforcement.
Diffstat (limited to 'Lib/test/test_unicodedata.py')
-rw-r--r--Lib/test/test_unicodedata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_unicodedata.py b/Lib/test/test_unicodedata.py
index 91c4700..58fc73d 100644
--- a/Lib/test/test_unicodedata.py
+++ b/Lib/test/test_unicodedata.py
@@ -94,7 +94,7 @@ class UnicodeFunctionsTest(UnicodeDatabaseTest):
str(self.db.mirrored(char)),
str(self.db.combining(char)),
]
- h.update(''.join(data))
+ h.update(''.join(data).encode("ascii"))
result = h.hexdigest()
self.assertEqual(result, self.expectedchecksum)