diff options
author | Guido van Rossum <guido@python.org> | 2007-04-13 02:23:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-04-13 02:23:57 (GMT) |
commit | 84d79ddce2176ae54825da32e096d6332a8d5138 (patch) | |
tree | 17236790cda0f1ba7d0eda07a8112f9d717c9418 /Lib | |
parent | ad7d8d10b70b62b25fc8ebd1a6bfef0c008a232a (diff) | |
download | cpython-84d79ddce2176ae54825da32e096d6332a8d5138.zip cpython-84d79ddce2176ae54825da32e096d6332a8d5138.tar.gz cpython-84d79ddce2176ae54825da32e096d6332a8d5138.tar.bz2 |
Disallow u"..." + b"..." and b"..." + u"...".
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_bytes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index 1d826b6..999346f 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -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") |