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