diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-07-09 18:12:32 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-07-09 18:12:32 -0400 |
| commit | bbb81e682c16198f7935d9a82403b7ae75b4d8a8 (patch) | |
| tree | f1383b26e4fd9868647e14490d82f70b8704ccf8 /test | |
| parent | 2b85e80d75f58a7691533a44693378e28ead752c (diff) | |
| download | sqlalchemy-bbb81e682c16198f7935d9a82403b7ae75b4d8a8.tar.gz | |
- support __only_on__ and __backend__ at the same time
Diffstat (limited to 'test')
| -rw-r--r-- | test/dialect/mysql/test_types.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/dialect/mysql/test_types.py b/test/dialect/mysql/test_types.py index f5901812e..ffb2240bb 100644 --- a/test/dialect/mysql/test_types.py +++ b/test/dialect/mysql/test_types.py @@ -15,6 +15,7 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): "Test MySQL column types" __dialect__ = mysql.dialect() + __only_on__ = 'mysql' __backend__ = True def test_numeric(self): @@ -153,7 +154,6 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): res ) - @testing.only_if('mysql') @testing.provide_metadata def test_precision_float_roundtrip(self): t = Table('t', self.metadata, @@ -291,7 +291,6 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): ]: self.assert_compile(type_, expected) - @testing.only_if('mysql') @testing.exclude('mysql', '<', (5, 0, 5), 'a 5.0+ feature') @testing.fails_if( lambda: testing.against("mysql+oursql") and util.py3k, @@ -350,7 +349,6 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): ]: self.assert_compile(type_, expected) - @testing.only_if('mysql') @testing.provide_metadata def test_boolean_roundtrip(self): bool_table = Table( @@ -448,7 +446,6 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): ) - @testing.only_if('mysql') @testing.provide_metadata def test_timestamp_nullable(self): ts_table = Table('mysql_timestamp', self.metadata, @@ -515,7 +512,6 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): datetime.time(8, 37, 35, 450) ) - @testing.only_if('mysql') @testing.provide_metadata def test_time_roundtrip(self): t = Table('mysql_time', self.metadata, @@ -525,7 +521,6 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): t.insert().values(t1=datetime.time(8, 37, 35)).execute() eq_(select([t.c.t1]).scalar(), datetime.time(8, 37, 35)) - @testing.only_if('mysql') @testing.provide_metadata def test_year(self): """Exercise YEAR.""" |
