def METHOD_NAME(self):
    mem = Memory(width=8, depth=4)
    with self.assertRaisesRegex(ValueError,
            r"^Read port cannot be simultaneously asynchronous and non-transparent$"):
        mem.read_port(domain="comb", transparent=False)