不启动后台线程的固定种子引擎,模块作用域,避免重复初始化开销。
()
| 95 | |
| 96 | @pytest.fixture(scope="module") |
| 97 | def bench_engine(): |
| 98 | """不启动后台线程的固定种子引擎,模块作用域,避免重复初始化开销。""" |
| 99 | return create_engine(seed=42, autostart=False) |
| 100 | |
| 101 | |
| 102 | # --------------------------------------------------------------------------- # |
nothing calls this directly
no test coverage detected