diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-13 19:59:10 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-13 19:59:10 -0400 |
commit | 9c5c12fb230cc72bf5ae8573dc420007718eaf0a (patch) | |
tree | 88b4d073d7878a4d95849dae7046bce67ccfc466 /test/requirements.py | |
parent | 2057b86b2ac2cfcb354ac213fc997359089a3d4c (diff) | |
download | sqlalchemy-9c5c12fb230cc72bf5ae8573dc420007718eaf0a.tar.gz |
- move some requirements up to the testing module to better support running
SQLA internal tests outside; plus things like savepoints, twophase
Diffstat (limited to 'test/requirements.py')
-rw-r--r-- | test/requirements.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/requirements.py b/test/requirements.py index 6726e4916..47bb9a761 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -407,11 +407,6 @@ class DefaultRequirements(SuiteRequirements): "driver doesn't support 'sane' rowcount" ) - @property - def cextensions(self): - return skip_if( - lambda: not self._has_cextensions(), "C extensions not installed" - ) @property def emulated_lastrowid(self): @@ -677,9 +672,6 @@ class DefaultRequirements(SuiteRequirements): return only_if(check_range_types) - @property - def sqlite(self): - return skip_if(lambda: not self._has_sqlite()) @property def oracle_test_dblink(self): @@ -708,16 +700,6 @@ class DefaultRequirements(SuiteRequirements): ('mssql', None, None, 'only simple labels allowed') ]) - @property - def ad_hoc_engines(self): - """Test environment must allow ad-hoc engine/connection creation. - - DBs that scale poorly for many connections, even when closed, i.e. - Oracle, may use the "--low-connections" option which flags this requirement - as not present. - - """ - return skip_if(lambda config: config.options.low_connections) @property def skip_mysql_on_windows(self): @@ -744,20 +726,6 @@ class DefaultRequirements(SuiteRequirements): """target driver must support the literal statement 'select 1'""" return skip_if(["oracle", "firebird"], "non-standard SELECT scalar syntax") - def _has_cextensions(self): - try: - from sqlalchemy import cresultproxy, cprocessors - return True - except ImportError: - return False - - def _has_sqlite(self): - from sqlalchemy import create_engine - try: - create_engine('sqlite://') - return True - except ImportError: - return False @property def mysql_fully_case_sensitive(self): |