from sqlalchemy.engine import default
class CompileTest(fixtures.TestBase, AssertsExecutionResults):
+ __requires__ = 'cpython',
+
@classmethod
def setup_class(cls):
clear_mappers, sessionmaker, class_mapper
from sqlalchemy.orm.mapper import _mapper_registry
from sqlalchemy.orm.session import _sessions
-from sqlalchemy.util import jython
import operator
from test.lib import testing, engines
from sqlalchemy import MetaData, Integer, String, ForeignKey, \
import weakref
from test.lib import fixtures
-if jython:
- from nose import SkipTest
- raise SkipTest("Profiling not supported on this platform")
-
-
class A(fixtures.ComparableEntity):
pass
class B(fixtures.ComparableEntity):
class MemUsageTest(EnsureZeroed):
+ __requires__ = 'cpython',
+
# ensure a pure growing test trips the assertion
@testing.fails_if(lambda: True)
def test_fixture(self):
class MergeTest(fixtures.MappedTest):
+ __requires__ = 'cpython',
+
@classmethod
def define_tables(cls, metadata):
parent = Table('parent', metadata, Column('id', Integer,
# count here,
# so remove some platforms that have wildly divergent
# callcounts.
- __requires__ = 'python25',
+ __requires__ = 'python25', 'cpython'
__unsupported_on__ = 'postgresql+pg8000', 'mysql+pymysql'
@classmethod
from sqlalchemy import pool as pool_module
class QueuePoolTest(fixtures.TestBase, AssertsExecutionResults):
+ __requires__ = 'cpython',
+
class Connection(object):
def rollback(self):
pass
class ResultSetTest(fixtures.TestBase, AssertsExecutionResults):
-
+ __requires__ = 'cpython',
__only_on__ = 'sqlite'
@classmethod
[tuple(row) for row in t2.select().execute().fetchall()]
class ExecutionTest(fixtures.TestBase):
+ __requires__ = 'cpython',
__only_on__ = 'sqlite'
def test_minimal_connection_execute(self):
)
)
+def cpython(fn):
+ return _chain_decorators_on(
+ fn,
+ skip_if(lambda: util.jython or util.pypy,
+ "cPython interpreter needed"
+ )
+ )
+
def _has_cextensions():
try:
from sqlalchemy import cresultproxy, cprocessors