From 01affc894cf6596ab808ec30179ac0f1f2d88606 Mon Sep 17 00:00:00 2001 From: awtkns Date: Sat, 28 Jan 2023 00:39:17 -0800 Subject: [PATCH] :bug: Only test tortoise on versions higher than 3.8 --- tests/implementations/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/implementations/__init__.py b/tests/implementations/__init__.py index 0c311095..839f22a4 100644 --- a/tests/implementations/__init__.py +++ b/tests/implementations/__init__.py @@ -1,3 +1,5 @@ +import sys + from .databases_ import ( databases_implementation, databases_implementation_custom_ids, @@ -23,6 +25,7 @@ sqlalchemy_implementation_string_pk, DSN_LIST, ) +from .tortoise_ import tortoise_implementation implementations = [ (memory_implementation, ""), @@ -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, ""))