diff options
| author | Federico Caselli <cfederico87@gmail.com> | 2021-02-18 19:12:45 +0100 |
|---|---|---|
| committer | Federico Caselli <cfederico87@gmail.com> | 2021-02-18 20:37:22 +0100 |
| commit | 629273a31b1be9ed195e9082d40b8741ab31e073 (patch) | |
| tree | 98d90e9a518737d2dfb6176f71654db2c04af728 /lib/sqlalchemy/testing/requirements.py | |
| parent | 227fd31d7d7c9354e51008e5a14e2cb5ee885266 (diff) | |
| download | sqlalchemy-629273a31b1be9ed195e9082d40b8741ab31e073.tar.gz | |
Minor optimization to the code
* remove the c version of distill params since it's actually slower than
the python one
* add a function to langhelpers to check if the cextensions are active
* minor cleanup to the OrderedSet implementation
Change-Id: Iec3d0c3f0f42cdf51f802aaca342ba37b8783b85
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
| -rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index d8da9c818..f16ba326c 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -1258,7 +1258,7 @@ class SuiteRequirements(Requirements): @property def cextensions(self): return exclusions.skip_if( - lambda: not self._has_cextensions(), "C extensions not installed" + lambda: not util.has_compiled_ext(), "C extensions not installed" ) def _has_sqlite(self): @@ -1270,14 +1270,6 @@ class SuiteRequirements(Requirements): except ImportError: return False - def _has_cextensions(self): - try: - from sqlalchemy import cresultproxy, cprocessors # noqa - - return True - except ImportError: - return False - @property def async_dialect(self): """dialect makes use of await_() to invoke operations on the DBAPI.""" |
