Avatar for the PrefectHQ user
PrefectHQ
prefect
BlogDocsChangelog

Fix noisy 'I/O operation on closed file' during test teardown

#21096
Comparing
fix/safe-stream-handler-teardown-16626
(
c7af34f
) with
main
(
cfb107d
)
CodSpeed Performance Gauge
0%
Untouched
2
Ignored
6

Benchmarks

8 total
bench_task_decorator
benches/bench_tasks.py
CodSpeed Performance Gauge
0%
550 µs548.5 µs
bench_import_prefect_flow
benches/bench_import.py
CodSpeed Performance Gauge
0%
1.4 s1.4 s
bench_flow_call[options1]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-3%
110.3 ms113.4 ms
bench_flow_decorator
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
0%
4.8 ms4.8 ms
bench_flow_call[options0]
benches/bench_flows.py
Ignored
CodSpeed Performance Gauge
-2%
112.1 ms113.8 ms
bench_task_submit
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
-40%
3.3 ms5.6 ms
bench_import_prefect
benches/bench_import.py
Ignored
CodSpeed Performance Gauge
0%
1.1 s1.1 s
bench_task_call
benches/bench_tasks.py
Ignored
CodSpeed Performance Gauge
×2.1
15 ms7.2 ms

Commits

Click on a commit to change the comparison range
Base
main
cfb107d
-0.03%
Fix noisy "I/O operation on closed file" during test teardown
0feec08
2 hours ago
by zzstoatzz
+0.15%
Prefix SafeStreamHandler with underscore to mark as private
c7af34f
2 hours ago
by zzstoatzz
© 2026 CodSpeed Technology
Home Terms Privacy Docs