assert('a' == 1 for _ in range(10))

Because the generator statement exists, the expression evaluates to True. However, the statement is never evaluated.