We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45885d7 commit 01affc8Copy full SHA for 01affc8
tests/implementations/__init__.py
@@ -1,3 +1,5 @@
1
+import sys
2
+
3
from .databases_ import (
4
databases_implementation,
5
databases_implementation_custom_ids,
@@ -23,6 +25,7 @@
23
25
sqlalchemy_implementation_string_pk,
24
26
DSN_LIST,
27
)
28
+from .tortoise_ import tortoise_implementation
29
30
implementations = [
31
(memory_implementation, ""),
@@ -33,9 +36,6 @@
33
36
implementations.extend([(sqlalchemy_implementation, dsn) for dsn in DSN_LIST])
34
37
implementations.extend([(databases_implementation, dsn) for dsn in DSN_LIST])
35
38
-try:
- from .tortoise_ import tortoise_implementation
-except ImportError:
39
- pass
40
-else:
+if sys.version_info >= (3, 8):
41
implementations.append((tortoise_implementation, ""))
0 commit comments