Skip to content

Commit 01affc8

Browse files
committed
🐛 Only test tortoise on versions higher than 3.8
1 parent 45885d7 commit 01affc8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/implementations/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
13
from .databases_ import (
24
databases_implementation,
35
databases_implementation_custom_ids,
@@ -23,6 +25,7 @@
2325
sqlalchemy_implementation_string_pk,
2426
DSN_LIST,
2527
)
28+
from .tortoise_ import tortoise_implementation
2629

2730
implementations = [
2831
(memory_implementation, ""),
@@ -33,9 +36,6 @@
3336
implementations.extend([(sqlalchemy_implementation, dsn) for dsn in DSN_LIST])
3437
implementations.extend([(databases_implementation, dsn) for dsn in DSN_LIST])
3538

36-
try:
37-
from .tortoise_ import tortoise_implementation
38-
except ImportError:
39-
pass
40-
else:
39+
40+
if sys.version_info >= (3, 8):
4141
implementations.append((tortoise_implementation, ""))

0 commit comments

Comments
 (0)