summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/test_basic.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-08-25 13:30:58 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-08-25 13:30:58 -0400
commit752750ea7e4cd026655f0dea19998821a08ac35a (patch)
treee45ab370e6caa23e33e21e3460502993e478a32c /test/orm/inheritance/test_basic.py
parentd55722031a6f3c04e41cd31f9e2926e66ecab78f (diff)
downloadsqlalchemy-752750ea7e4cd026655f0dea19998821a08ac35a.tar.gz
- fix for pypy
- more oracle fixes
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r--test/orm/inheritance/test_basic.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py
index 558ce9bff..ad30ab44d 100644
--- a/test/orm/inheritance/test_basic.py
+++ b/test/orm/inheritance/test_basic.py
@@ -444,7 +444,8 @@ class SortOnlyOnImportantFKsTest(fixtures.MappedTest):
class A(Base):
__tablename__ = "a"
- id = Column(Integer, primary_key=True)
+ id = Column(Integer, primary_key=True,
+ test_needs_autoincrement=True)
b_id = Column(Integer, ForeignKey('b.id'))
class B(A):
@@ -471,8 +472,10 @@ class FalseDiscriminatorTest(fixtures.MappedTest):
Column('type', Boolean, nullable=False))
def test_false_on_sub(self):
- class Foo(object):pass
- class Bar(Foo):pass
+ class Foo(object):
+ pass
+ class Bar(Foo):
+ pass
mapper(Foo, t1, polymorphic_on=t1.c.type, polymorphic_identity=True)
mapper(Bar, inherits=Foo, polymorphic_identity=False)
sess = create_session()
@@ -1804,7 +1807,8 @@ class TransientInheritingGCTest(fixtures.TestBase):
class A(Base):
__tablename__ = 'a'
- id = Column(Integer, primary_key=True, test_needs_pk=True)
+ id = Column(Integer, primary_key=True,
+ test_needs_autoincrement=True)
data = Column(String(10))
self.A = A
return Base