]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
this test fails on PyPy because it checks for a lastrowid after the connection is...
authorAlex Gaynor <alex.gaynor@gmail.com>
Wed, 16 Mar 2011 18:18:27 +0000 (14:18 -0400)
committerAlex Gaynor <alex.gaynor@gmail.com>
Wed, 16 Mar 2011 18:18:27 +0000 (14:18 -0400)
test/ext/test_horizontal_shard.py
test/lib/requires.py

index 45903a0e6a796858beb45cfa70f9d91e595147f0..ff99f22dc2db7d5d308c990f6513f3e218c4c725 100644 (file)
@@ -203,8 +203,8 @@ class ShardTest(TestBase):
 
         sess.query(WeatherLocation).all()
         eq_(
-            canary, 
-            ['asia', 'north_america', 'north_america', 
-            'europe', 'europe', 'south_america', 
+            canary,
+            ['asia', 'north_america', 'north_america',
+            'europe', 'europe', 'south_america',
             'south_america']
         )
\ No newline at end of file
index e3f044868b7eb5e6dc53fd09a2cbb35930c66fac..1be308fe7e89285406270f2b014807651ac11552 100644 (file)
@@ -13,7 +13,9 @@ from testing import \
      skip_if,\
      only_on,\
      fails_on,\
-     fails_on_everything_except
+     fails_on_everything_except,\
+     fails_if
+from sqlalchemy import util
 
 import testing
 import sys
@@ -213,7 +215,7 @@ def offset(fn):
 def window_functions(fn):
     return _chain_decorators_on(
         fn,
-        only_on(('postgresql', 'mssql', 'oracle'), 
+        only_on(('postgresql', 'mssql', 'oracle'),
                 "Backend does not support window functions"),
     )
 
@@ -288,7 +290,8 @@ def dbapi_lastrowid(fn):
     return _chain_decorators_on(
         fn,
         fails_on_everything_except('mysql+mysqldb', 'mysql+oursql',
-                                   'sqlite+pysqlite', 'mysql+pymysql')
+                                   'sqlite+pysqlite', 'mysql+pymysql'),
+        fails_if(lambda: util.pypy),
     )
 
 def sane_multi_rowcount(fn):
@@ -303,7 +306,7 @@ def nullsordering(fn):
         fn,
         fails_on_everything_except('postgresql', 'oracle', 'firebird')
     )
+
 def reflects_pk_names(fn):
     """Target driver reflects the name of primary key constraints."""
     return _chain_decorators_on(