diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-01-17 16:13:19 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-01-17 16:19:43 -0500 |
commit | 2f86267f07d53d66d08a21533b9dc0e8ad70ff13 (patch) | |
tree | e90723f9b3d7cb732988d89da223f31519b49309 /test/orm/inheritance/test_basic.py | |
parent | f2028dc5afec506fd3ad8c78b0275e76bf172b2a (diff) | |
download | sqlalchemy-2f86267f07d53d66d08a21533b9dc0e8ad70ff13.tar.gz |
- this test is too brittle under load, not worth it, remove it
Change-Id: I3f294b4d153979c308532360d03ab7be3c5d994a
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r-- | test/orm/inheritance/test_basic.py | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py index 7b5f85b9b..aefb9d429 100644 --- a/test/orm/inheritance/test_basic.py +++ b/test/orm/inheritance/test_basic.py @@ -2408,65 +2408,6 @@ class OptimizedLoadTest(fixtures.MappedTest): ) ) -class TransientInheritingGCTest(fixtures.TestBase): - __requires__ = ('cpython', 'no_coverage') - - def _fixture(self): - Base = declarative_base() - - class A(Base): - __tablename__ = 'a' - id = Column(Integer, primary_key=True, - test_needs_autoincrement=True) - data = Column(String(10)) - self.A = A - return Base - - def setUp(self): - self.Base = self._fixture() - - def tearDown(self): - self.Base.metadata.drop_all(testing.db) - #clear_mappers() - self.Base = None - - def _do_test(self, go): - B = go() - self.Base.metadata.create_all(testing.db) - sess = Session(testing.db) - sess.add(B(data='some b')) - sess.commit() - - b1 = sess.query(B).one() - assert isinstance(b1, B) - sess.close() - del sess - del b1 - del B - - gc_collect() - - eq_( - len(self.A.__subclasses__()), - 0) - - def test_single(self): - def go(): - class B(self.A): - pass - return B - self._do_test(go) - - @testing.fails_if(lambda: True, - "not supported for joined inh right now.") - def test_joined(self): - def go(): - class B(self.A): - __tablename__ = 'b' - id = Column(Integer, ForeignKey('a.id'), - primary_key=True) - return B - self._do_test(go) class NoPKOnSubTableWarningTest(fixtures.TestBase): |