@_generative(_no_statement_condition, _no_limit_offset)
    def having(self, criterion):

        if isinstance(criterion, util.string_types):
            criterion = sql.text(criterion)

        if criterion is not None and \
                not isinstance(criterion, sql.ClauseElement):
            raise sa_exc.ArgumentError(
                "having() argument must be of type "
                "sqlalchemy.sql.ClauseElement or string")

        criterion = self._adapt_clause(criterion, True, True)

        if self._having is not None:
            self._having = self._having & criterion
        else:
            self._having = criterion
Check that a doctest is given a DoctestScope.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/orm/query.py/Query.having--crossover with--dataset/ETHPy150Open pyflakes/pyflakes/pyflakes/test/test_doctests.py/Test.test_scope_class