]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix MySQL tests
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 18 Oct 2009 02:52:56 +0000 (02:52 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 18 Oct 2009 02:52:56 +0000 (02:52 +0000)
test/dialect/test_mysql.py
test/orm/test_query.py

index cb6e6fc91b5342994aa9d9051ad98e5dcfc26b0b..9fc71be7811fb9c99a80791c4e03434b0ba4789e 100644 (file)
@@ -16,6 +16,7 @@ class TypesTest(TestBase, AssertsExecutionResults):
 
     __only_on__ = 'mysql'
 
+    @testing.uses_deprecated('Manually quoting ENUM value literals')
     def test_basic(self):
         meta1 = MetaData(testing.db)
         table = Table(
@@ -531,6 +532,7 @@ class TypesTest(TestBase, AssertsExecutionResults):
         finally:
             meta.drop_all()
 
+    @testing.uses_deprecated('Manually quoting ENUM value literals')
     def test_enum(self):
         """Exercise the ENUM type."""
 
@@ -611,6 +613,7 @@ class TypesTest(TestBase, AssertsExecutionResults):
         enum_table.drop()
 
     @testing.exclude('mysql', '<', (4,), "3.23 can't handle an ENUM of ''")
+    @testing.uses_deprecated('Manually quoting ENUM value literals')
     def test_enum_parse(self):
         """More exercises for the ENUM type."""
 
@@ -713,6 +716,7 @@ class ReflectionTest(TestBase, AssertsExecutionResults):
 
     @testing.exclude('mysql', '<', (5, 0, 0), 'early types are squirrely')
     @testing.uses_deprecated('Using String type with no length')
+    @testing.uses_deprecated('Manually quoting ENUM value literals')
     def test_type_reflection(self):
         # (ask_for, roundtripped_as_if_different)
         specs = [( String(1), mysql.MSString(1), ),
index b24dfa8f6531ea520aaddce9b7e4789d75bc0fb8..41a59726760b1548385699d88ce71f8a0286200c 100644 (file)
@@ -941,8 +941,8 @@ class SetOpsTest(QueryTest, AssertsCompiledSQL):
         q5 = s.query(User, literal("y"))
         q6 = q4.union(q5)
         
-        for q in (q3, q6):
-            eq_(q.order_by(User.id).all(),
+        for q in (q3.order_by(User.id, "anon_1_anon_2"), q6.order_by(User.id, "foo")):
+            eq_(q.all(),
                 [
                     (User(id=7, name=u'jack'), u'x'), 
                     (User(id=7, name=u'jack'), u'y'),