From: Mike Bayer Date: Thu, 15 Jun 2017 20:07:06 +0000 (-0400) Subject: - remove redundant fixture from base test class X-Git-Tag: rel_1_2_0b1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7af05fcc9387cea4172cc35eb6a198776488f90d;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - remove redundant fixture from base test class Change-Id: I76f197d5b2b39ae476bfff924e899773aa123be0 --- diff --git a/test/orm/test_options.py b/test/orm/test_options.py index c0bc21a748..024806d429 100644 --- a/test/orm/test_options.py +++ b/test/orm/test_options.py @@ -607,21 +607,6 @@ class FromSubclassOptionsTest(PathTest, fixtures.DeclarativeMappedTest): __tablename__ = 'sub_related' id = Column(Integer, primary_key=True) - def _assert_path_result(self, opt, q, paths): - q._attributes = q._attributes.copy() - attr = {} - - for val in opt._to_bind: - val._bind_loader( - [ent.entity_zero for ent in q._mapper_entities], - q._current_path, attr, False) - - assert_paths = [k[1] for k in attr] - eq_( - set([p for p in assert_paths]), - set([self._make_path(p) for p in paths]) - ) - def test_with_current_nonmatching_entity_subclasses(self): BaseCls, SubClass, Related, SubRelated = self.classes( 'BaseCls', 'SubClass', 'Related', 'SubRelated')