From: Mike Bayer Date: Wed, 17 Sep 2014 19:40:09 +0000 (-0400) Subject: - not sure what this is testing but remove the self.l that might X-Git-Tag: rel_1_0_0b1~70^2~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f2f88d8ffaac5ae98de097e548e205778686cd5;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - not sure what this is testing but remove the self.l that might be contributing to pypy not cleaning up on this one --- diff --git a/test/orm/test_eager_relations.py b/test/orm/test_eager_relations.py index 214b592b5f..4c6d9bbe1d 100644 --- a/test/orm/test_eager_relations.py +++ b/test/orm/test_eager_relations.py @@ -1253,8 +1253,9 @@ class EagerTest(_fixtures.FixtureTest, testing.AssertsCompiledSQL): orders=relationship(Order, lazy=False, order_by=orders.c.id), )) q = create_session().query(User) - self.l = q.all() - eq_(self.static.user_all_result, q.order_by(User.id).all()) + def go(): + eq_(self.static.user_all_result, q.order_by(User.id).all()) + self.assert_sql_count(testing.db, go, 1) def test_against_select(self): """test eager loading of a mapper which is against a select"""