fix infinite loop in e501 experimental_decorator unit test