[Python-3000-checkins] r55409 - python/branches/py3k-struni/Lib/test/test_codecs.py
walter.doerwald
python-3000-checkins at python.org
Thu May 17 20:36:05 CEST 2007
Author: walter.doerwald
Date: Thu May 17 20:35:58 2007
New Revision: 55409
Modified:
python/branches/py3k-struni/Lib/test/test_codecs.py
Log:
Fix tests for string encodings.
Modified: python/branches/py3k-struni/Lib/test/test_codecs.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_codecs.py (original)
+++ python/branches/py3k-struni/Lib/test/test_codecs.py Thu May 17 20:35:58 2007
@@ -1108,7 +1108,7 @@
if hasattr(codecs, "mbcs_encode"):
all_unicode_encodings.append("mbcs")
-# The following encodings work only with str, not unicode
+# The following encodings work only with str8, not str
all_string_encodings = [
"quopri_codec",
"string_escape",
@@ -1289,7 +1289,7 @@
class BasicStrTest(unittest.TestCase):
def test_basics(self):
- s = "abc123"
+ s = str8("abc123")
for encoding in all_string_encodings:
(encoded, size) = codecs.getencoder(encoding)(s)
self.assertEqual(size, len(s))
More information about the Python-3000-checkins
mailing list