Commits

Alex Gaynor committed c535d47

this test fails on PyPy because it checks for a lastrowid after the connection is lcosed

Comments (0)

Files changed (2)

test/ext/test_horizontal_shard.py

 
         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']
         )

test/lib/requires.py

      skip_if,\
      only_on,\
      fails_on,\
-     fails_on_everything_except
+     fails_on_everything_except,\
+     fails_if
+from sqlalchemy import util
 
 import testing
 import sys
 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"),
     )
 
     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):
         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(