Skip to content

Commit

Permalink
Debug odbc CI
Browse files Browse the repository at this point in the history
  • Loading branch information
abondar committed Oct 13, 2024
1 parent c7d5be1 commit 002f498
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,20 @@ Changelog
====
0.21.7
------
- Fix bug when using annotate and count at the same time but the annotation does not match anything, leading to an IndexError
Fixed
^^^^^
- Fix unittest error with pydantic2.9 (#1734)
- Fix bug when using annotate and count at the same time but the annotation does not match anything, leading to an IndexError (#1707)
- Added missing field_type for TimeDeltaField (#1462) (#1699)
- improve jsonfield type hint (#1700)
- Fix bug in tortoise.models.Model When a QuerySet uses the only function and then uses the print function to print the returned result, an AttributeError is generated (#1724)
- Update the pylint plugin to latest astroid version (#1708)

Added
^^^^^
- Add POSIX Regex support for PostgreSQL and MySQL (#1714)
- support app=None for tortoise.contrib.fastapi.RegisterTortoise (#1733)


0.21.6
------
Expand Down
4 changes: 2 additions & 2 deletions tests/test_concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from tests.testmodels import Tournament, UniqueName
from tortoise.contrib import test
from tortoise.contrib.test.condition import NotEQ
from tortoise.contrib.test.condition import NotEQ, NotIn
from tortoise.transactions import in_transaction


Expand Down Expand Up @@ -31,7 +31,7 @@ async def test_nonconcurrent_get_or_create(self):
self.assertEqual(una[0], unas[0][0])

@test.skipIf(sys.version_info < (3, 7), "aiocontextvars backport not handling this well")
@test.requireCapability(dialect=NotEQ("mssql"))
@test.requireCapability(dialect=NotIn("mssql", "oracle"))
async def test_concurrent_get_or_create(self):
unas = await asyncio.gather(*[UniqueName.get_or_create(name="d") for _ in range(10)])
una_created = [una[1] for una in unas if una[1] is True]
Expand Down

0 comments on commit 002f498

Please sign in to comment.