mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Patch #1303: Adapt str8 constructor to bytes (now buffer) one.
This commit is contained in:
parent
97f9d4f312
commit
bd1c68c94f
15 changed files with 212 additions and 72 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue