def test_cant_do_distinct_in_joins(self):
        Movie = self.classes.Movie
        Credit = self.classes.Credit

        s = create_session()

        q = (
            s.query(Credit)
            .options(
                subqueryload(Credit.movie)
                .subqueryload(Movie.director)
            )
        )

        ctx = q._compile_context()

        q2 = ctx.attributes[
            ('subquery', (inspect(Credit), Credit.movie.property))
        ]
        ctx2 = q2._compile_context()
        q3 = ctx2.attributes[
            ('subquery', (inspect(Movie), Movie.director.property))
        ]

        result = s.execute(q3)
        eq_(
            result.fetchall(),
            [
                (1, 'Woody Allen', 1), (1, 'Woody Allen', 1),
            ]
        )
Test that requestReceived handles requests by dispatching them to
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_subquery_relations.py/SubqueryloadDistinctTest.test_cant_do_distinct_in_joins--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_channel.py/ChannelTests.test_requestReceived