Use python3.10 for GH workflows, fix postgres range issues in tests.

This commit is contained in:
Benedikt Willi 2023-07-04 17:44:54 +02:00
parent 1ae7de40d8
commit a8842b2195
2 changed files with 6 additions and 2 deletions

View file

@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.9']
python-version: ['3.10']
services:
redis:

View file

@ -5,7 +5,11 @@ from unittest import skipUnless
from django.contrib.postgres.functions import TransactionNow
from django.db import connection
from django.test import TransactionTestCase, override_settings
from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange
from django.db.backends.postgresql.psycopg_any import (
DateRange,
DateTimeTZRange,
NumericRange,
)
from pytz import timezone
from ..utils import UncachableQuery