def METHOD_NAME(self):
    # Test inference when we request a non-async function
    # Infer generator
    code = ConcreteBytecode()
    code.append(ConcreteInstr("YIELD_VALUE"))
    code.flags = CompilerFlags(CompilerFlags.COROUTINE)
    code.update_flags(is_async=False)
    self.assertTrue(bool(code.flags & CompilerFlags.GENERATOR))
    # Abort on coroutine
    code = ConcreteBytecode()
    code.append(ConcreteInstr("GET_AWAITABLE"))
    code.flags = CompilerFlags(CompilerFlags.COROUTINE)
    with self.assertRaises(ValueError):
        code.update_flags(is_async=False)