Skip to content

Commit

Permalink
Fix returning test logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Mar 2, 2021
1 parent 26b0ca8 commit 94b5497
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/returning.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from .base import db
from .base import skip_unless
from .base import IS_SQLITE
from .base import ModelTestCase
from .base import TestModel

Expand All @@ -19,7 +20,8 @@ class Meta:
)


returning_support = db.returning_clause or (__sqlite_version__ >= (3, 35, 0))
returning_support = db.returning_clause or (IS_SQLITE and
__sqlite_version__ >= (3, 35, 0))


@skip_unless(returning_support, 'database does not support RETURNING')
Expand Down

0 comments on commit 94b5497

Please sign in to comment.