tortoise
tortoise-orm
BlogDocsChangelog

fix: replace deprecated `asyncio.get_event_loop()` with modern approach

#1865Merged
Comparing
Abdeldjalil-H:fix/event-loop-warning
(
0a7fffd
) with
develop
(
960b1c1
)
CodSpeed Performance Gauge
0%
Untouched
12

Benchmarks

Passed

test_expressions_count
tests/benchmarks/test_expressions.py
CodSpeed Performance Gauge
0%
859.4 µs855.9 µs
test_field_attribute_lookup_get_for_dialect
tests/benchmarks/test_field_attribute_lookup.py
CodSpeed Performance Gauge
0%
58.7 µs58.5 µs
test_create_many_fields
tests/benchmarks/test_create.py
CodSpeed Performance Gauge
0%
747 µs745.9 µs
test_get_many_fields
tests/benchmarks/test_get.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_bulk_create_many_fields
tests/benchmarks/test_bulk_create.py
CodSpeed Performance Gauge
0%
10.7 ms10.7 ms
test_filter_few_fields
tests/benchmarks/test_filter.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_filter_many_filters
tests/benchmarks/test_filter.py
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_bulk_create_few_fields
tests/benchmarks/test_bulk_create.py
CodSpeed Performance Gauge
0%
2.5 ms2.5 ms
test_get_few_fields
tests/benchmarks/test_get.py
CodSpeed Performance Gauge
0%
731.5 µs734 µs
test_create_few_fields
tests/benchmarks/test_create.py
CodSpeed Performance Gauge
0%
487.2 µs489.2 µs
test_expressions_f
tests/benchmarks/test_expressions.py
CodSpeed Performance Gauge
-1%
762.4 µs767.2 µs

Commits

Click on a commit to change the comparison range
Base
develop
960b1c1
-0.35%
fix: replace deprecated asyncio.get_event_loop() with modern approach Replace deprecated get_event_loop() with get_running_loop() and fallback to new_event_loop() to fix the "no current event loop" warning in Python 3.10+
d153f72
1 year ago
by Abdeldjalil-H
+0.11%
add missing line
8252e46
1 year ago
by Abdeldjalil-H
+0.11%
update changelog
0a7fffd
1 year ago
by Abdeldjalil-H
© 2026 CodSpeed Technology
Home Terms Privacy Docs