diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-01-12 04:52:05 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-01-12 04:52:05 +0000 |
commit | c194962019d1bc7322e20b82c33aa1bab3bc2a28 (patch) | |
tree | e1e3b8b1119990de7fb3b30f7e3ab6dfa40ca838 /test/dialect/mysql.py | |
parent | 05a693fcb7a57f0362e06da1517cb35279bfaad1 (diff) | |
download | sqlalchemy-c194962019d1bc7322e20b82c33aa1bab3bc2a28.tar.gz |
- Undeclared SAWarnings are now fatal to tests as well.
- Fixed typo that was killing runs of individual named tests.
Diffstat (limited to 'test/dialect/mysql.py')
-rw-r--r-- | test/dialect/mysql.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/dialect/mysql.py b/test/dialect/mysql.py index 0a9153327..df6a2547b 100644 --- a/test/dialect/mysql.py +++ b/test/dialect/mysql.py @@ -1,5 +1,5 @@ import testbase -import sets, warnings +import sets from sqlalchemy import * from sqlalchemy import sql, exceptions from sqlalchemy.databases import mysql @@ -627,6 +627,7 @@ class TypesTest(AssertMixin): def_table.drop() @testing.exclude('mysql', '<', (5, 0, 0)) + @testing.uses_deprecated('Using String type with no length') def test_type_reflection(self): # (ask_for, roundtripped_as_if_different) specs = [( String(), mysql.MSText(), ), @@ -665,13 +666,7 @@ class TypesTest(AssertMixin): m = MetaData(db) t_table = Table('mysql_types', m, *columns) try: - try: - warnings.filterwarnings('ignore', - 'Using String type with no length.*') - m.create_all() - finally: - warnings.filterwarnings("always", - 'Using String type with no length.*') + m.create_all() m2 = MetaData(db) rt = Table('mysql_types', m2, autoload=True) |