summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/test_basic.py
diff options
context:
space:
mode:
authorPhilip Jenvey <pjenvey@underboss.org>2010-01-23 21:35:40 +0000
committerPhilip Jenvey <pjenvey@underboss.org>2010-01-23 21:35:40 +0000
commit77b6e981a4c0a815b13a197854eca0d8f893a0a9 (patch)
tree579f0877b3aa9560f0938f1124ff0b7ebb8a00bf /test/orm/inheritance/test_basic.py
parentfc92d14bbe3077ff94df108bf53ec77e0da83dd8 (diff)
downloadsqlalchemy-77b6e981a4c0a815b13a197854eca0d8f893a0a9.tar.gz
disable SAWarning exceptions when supports_sane_rowcount isn't supported so
VersioningTest can complete
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r--test/orm/inheritance/test_basic.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py
index b02db4e1b..e189159ea 100644
--- a/test/orm/inheritance/test_basic.py
+++ b/test/orm/inheritance/test_basic.py
@@ -1,3 +1,4 @@
+import warnings
from sqlalchemy.test.testing import eq_, assert_raises, assert_raises_message
from sqlalchemy import *
from sqlalchemy import exc as sa_exc, util
@@ -556,6 +557,17 @@ class VersioningTest(_base.MappedTest):
Column('parent', Integer, ForeignKey('base.id'))
)
+ def setup(self):
+ super(VersioningTest, self).setup()
+ if not testing.db.dialect.supports_sane_rowcount:
+ self._warnings_filters = warnings.filters[:]
+ warnings.filterwarnings('ignore', category=sa_exc.SAWarning)
+
+ def teardown(self):
+ super(VersioningTest, self).teardown()
+ if not testing.db.dialect.supports_sane_rowcount:
+ warnings.filters[:] = self._warnings_filters
+
@engines.close_open_connections
def test_save_update(self):
class Base(_fixtures.Base):