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