void () { doTest("str", """ a = None if isinstance(a, str) is True: expr = a raise TypeError('Invalid type')"""); doTest("str", """ a = None if True is isinstance(a, str): expr = a raise TypeError('Invalid type')"""); }