mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Disallow u"..." + b"..." and b"..." + u"...".
This commit is contained in:
parent
ad7d8d10b7
commit
84d79ddce2
2 changed files with 4 additions and 1 deletions
|
@ -374,7 +374,7 @@ class BytesTest(unittest.TestCase):
|
|||
self.assertEqual(b1 + "def", bytes("abcdef"))
|
||||
self.assertEqual("def" + b1, bytes("defabc"))
|
||||
self.assertRaises(TypeError, lambda: b1 + u"def")
|
||||
##self.assertRaises(TypeError, lambda: u"abc" + b2) # XXX FIXME
|
||||
self.assertRaises(TypeError, lambda: u"abc" + b2)
|
||||
|
||||
def test_repeat(self):
|
||||
b = bytes("abc")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue