Skip to content

Commit

Permalink
🐛 Only test tortoise on versions higher than 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
awtkns committed Jan 28, 2023
1 parent 45885d7 commit 01affc8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/implementations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys

from .databases_ import (
databases_implementation,
databases_implementation_custom_ids,
Expand All @@ -23,6 +25,7 @@
sqlalchemy_implementation_string_pk,
DSN_LIST,
)
from .tortoise_ import tortoise_implementation

implementations = [
(memory_implementation, ""),
Expand All @@ -33,9 +36,6 @@
implementations.extend([(sqlalchemy_implementation, dsn) for dsn in DSN_LIST])
implementations.extend([(databases_implementation, dsn) for dsn in DSN_LIST])

try:
from .tortoise_ import tortoise_implementation
except ImportError:
pass
else:

if sys.version_info >= (3, 8):
implementations.append((tortoise_implementation, ""))

0 comments on commit 01affc8

Please sign in to comment.