gh-95144: Improve error message of ... in None (GH-119888)

This commit is contained in:
Zachary Ware 2024-07-12 11:34:17 -05:00 committed by GitHub
parent 65fededf9c
commit dc03ce797a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 5 deletions

View file

@ -1434,7 +1434,7 @@ class BlobTests(unittest.TestCase):
self.blob + self.blob
with self.assertRaisesRegex(TypeError, "unsupported operand"):
self.blob * 5
with self.assertRaisesRegex(TypeError, "is not iterable"):
with self.assertRaisesRegex(TypeError, "is not.+iterable"):
b"a" in self.blob
def test_blob_context_manager(self):