diff options
author | Georg Brandl <georg@python.org> | 2007-10-24 18:55:37 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-10-24 18:55:37 (GMT) |
commit | bd1c68c94f0d5bc25b48f62c7527f51c754f2b6b (patch) | |
tree | a468fcccf4193f6d26ce71246e2596de6ffc9eec /Lib/test/test_unicode.py | |
parent | 97f9d4f31224e72e5c714ea7e509c4fd0044f0e2 (diff) | |
download | cpython-bd1c68c94f0d5bc25b48f62c7527f51c754f2b6b.zip cpython-bd1c68c94f0d5bc25b48f62c7527f51c754f2b6b.tar.gz cpython-bd1c68c94f0d5bc25b48f62c7527f51c754f2b6b.tar.bz2 |
Patch #1303: Adapt str8 constructor to bytes (now buffer) one.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r-- | Lib/test/test_unicode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 9aad59a..4970845 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -203,8 +203,8 @@ class UnicodeTest( self.assertRaises(TypeError, 'replace'.replace, "r", 42) def test_str8_comparison(self): - self.assertEqual('abc' == str8('abc'), False) - self.assertEqual('abc' != str8('abc'), True) + self.assertEqual('abc' == str8(b'abc'), False) + self.assertEqual('abc' != str8(b'abc'), True) def test_comparison(self): # Comparisons: |